Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,244
» Latest member: thebigback
» Forum threads: 38,778
» Forum posts: 175,804

Full Statistics

Online Users
There are currently 54 online users.
» 0 Member(s) | 48 Guest(s)
Bing, AOL, Google, Mojeek, Apple

Latest Threads
Help with Serial.write in...
Forum: General Coding Help
Last Post: racingsubby
1 hour ago
» Replies: 2
» Views: 31
Backward compatibility qu...
Forum: News and Discussions
Last Post: yutaozhou
2 hours ago
» Replies: 4
» Views: 160
I’m building a Python Dat...
Forum: GUI
Last Post: Gribouillis
4 hours ago
» Replies: 6
» Views: 162
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 70
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,584
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 157
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 150
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,488
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,391
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,587

 
  django - add l<a> tag - render_to_string
Posted by: rwahdan - Jan-06-2022, 05:48 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

i have the follwoing code in view.py:
[python]
subject = "Thank you for your payment!"
template = render_to_string('cart/emai..... More

Print this item

  Functions to consider for file renaming and moving around directories
Posted by: cubangt - Jan-06-2022, 05:23 PM - Forum: General Coding Help - Replies (2)

ok, so im starting to work on a script to do some file moving and renaming and want to see what functions to consider and what would be best practice ..... More

Print this item

  Code to check folder and sub folders for new file and alert
Posted by: fioranosnake - Jan-06-2022, 09:24 AM - Forum: General Coding Help - Replies (2)

Hi Experts!

Can anyone advise if there is any way to scan a folder and sub folders for example, every hour, and send an email via SMTP with the fil..... More

Print this item

  Not able to read the text using pexpect/expect
Posted by: Bipinjohnson - Jan-06-2022, 04:42 AM - Forum: General Coding Help - Replies (7)

Hi,
I am new to python i am trying some automation where in i want to call a terminal application from python and control the same.
I have tried [i]..... More

Print this item

  Dynamic File Name to a shared folder with open command in python
Posted by: sjcsvatt - Jan-06-2022, 03:24 AM - Forum: General Coding Help - Replies (9)

Need help for a file path to write to a file in a remote shared folder using with open command.
Below is my sample code:
[python]
import os
import..... More

Print this item

  FTP File Download question / concern
Posted by: cubangt - Jan-05-2022, 09:22 PM - Forum: General Coding Help - Replies (3)

Im working on a small python file/script that will connect to our FTP server and look for 3 specific files and then download them to our network for p..... More

Print this item

  Try to solve GTG multiplication table problem.
Posted by: Frankduc - Jan-05-2022, 07:12 PM - Forum: General Coding Help - Replies (6)

Hello,
I try to solve a problem from GTG.

Multiplication Table Print the multiplication table of a given number N.
Input:
N = 9

Output:
9..... More

Print this item

  Help with a bug
Posted by: mjwaterskis - Jan-05-2022, 05:03 PM - Forum: Game Development - Replies (3)

Hello! This is my first post, so please excuse any issues with the formatting.

I am very new to coding and am trying to teach myself python. I've ..... More

Print this item

  Setup of VSCode to run with Python: some things are messed up
Posted by: apollo - Jan-05-2022, 12:22 PM - Forum: Bar - No Replies

hello dear community,


first of all: a happy new year to all of you. I wish you all a great and sucessful new year! Smile Wink
..... More


Attached Files

Thumbnail(s)
   
Print this item

  free pyFltk gui course
Posted by: robark - Jan-05-2022, 06:32 AM - Forum: GUI - No Replies

I am one of the maintainers of the open source pyFltk gui toolkit. I have published a free online course at http://arkiletian.com/cs2 (No ads on webs..... More

Print this item

  Mac os choose file name
Posted by: howard687 - Jan-05-2022, 01:46 AM - Forum: General Coding Help - Replies (1)

I would like, on Mac Os, to invoke code that presents the user with a dialog (panel) to navigate directories/folders and choose a file. I believe the..... More

Print this item

  return vs. print in nested function example
Posted by: Mark17 - Jan-04-2022, 04:21 PM - Forum: General Coding Help - Replies (4)

Here's a nested function:

[Python]
def outer():
n = 1

def inner():
n = 2
print(n)
#return n

..... More

Print this item

  Why does absence of print command outputs quotes in function?
Posted by: Mark17 - Jan-04-2022, 02:47 PM - Forum: General Coding Help - Replies (2)

Hi all,

For this function:

def two_word_shout(word1,word2):
    return word1+'!'*3+' '+word2+'!'*3
two_word_shout('cong..... More

Print this item

  dynamic expression
Posted by: arkiboys - Jan-04-2022, 01:55 PM - Forum: General Coding Help - Replies (1)

Hello,
The dataframe below (Works fine) uses the read col_Expr to apply expression to the columns where required.
[python]
from pyspark.sql.functions ..... More

Print this item

  Data pulled from SQL comes in brackets
Posted by: nickzsche - Jan-04-2022, 01:42 PM - Forum: General Coding Help - Replies (3)

Hello, my data from sql comes in brackets. How can I solve this? I just need the string states inside.


[python] veritabani = sqlite3.connect("Ver..... More

Print this item

  Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip.
Posted by: Anldra12 - Jan-04-2022, 11:47 AM - Forum: General Coding Help - Replies (2)

Installing any library using pip install gmpy2 return me an error
[error]Traceback (most recent call last):
File "d:\python3.8.0\python\li..... More

Print this item

  Create RTSP stream from camera?
Posted by: korenron - Jan-04-2022, 08:56 AM - Forum: General Coding Help - Replies (1)

Hello ,
I want to build a project taht will stream video from my PI camera
so I will be able to connect and see it using RTSP
how can I do this ?..... More

Print this item

  Setting permanent user variables in Windows
Posted by: coder420 - Jan-04-2022, 08:13 AM - Forum: General Coding Help - Replies (2)

Greetings!

I've read through a lot of posts and didn't manage to make it work.
My problem is that I'm unable to insert my variable in this statement:..... More

Print this item

  Calling this script
Posted by: Extra - Jan-03-2022, 08:18 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm trying to figure out how to call the

#print data part
of my Weather.py script into another script I have.
I tried mak..... More

Print this item

  Help needed with Jupyter Notebook
Posted by: eyadfr - Jan-03-2022, 07:53 PM - Forum: Data Science - Replies (4)

Hello

I'm working on Jupyter Notebook with a dataframe. When manipulating the dataframe using functions some rows are missed!

The dataset has m..... More

Print this item

  Hiding "undesired" info
Posted by: Extra - Jan-03-2022, 02:01 PM - Forum: General Coding Help - Replies (4)

Hello,

I would like to know if it's possible to hide some of this info that pops up on my terminal/cmd line when I run my code.

Or how do I ge..... More

Print this item

  Sqllite column insert
Posted by: nickzsche - Jan-03-2022, 01:54 PM - Forum: General Coding Help - Replies (2)

Hi, I want to add the data from the text file to the column named "firma" in sqlite. What should I do?


[python]
import sqlite3

vt = sqlite3.c..... More

Print this item

  How to read rainfall time series and insert missing data points
Posted by: MadsM - Jan-03-2022, 01:39 PM - Forum: General Coding Help - Replies (4)

Hello,

I am currently attempting to write a code that will read .km2 files, which contains a header row with columns of information and an array of..... More


Attached Files

Thumbnail(s)
   
Print this item

  How can I sync Combobox index to other combobox index?
Posted by: nickzsche - Jan-03-2022, 12:15 PM - Forum: GUI - Replies (2)

Hi, I have a question. I'm getting the data from the text file until the sql handles it. What I want is to return the index value of the element I sel..... More

Print this item

  Python Obstacles | Kapap | Wiki Scraped Content [Column Nulling]
Posted by: BrandonKastning - Jan-03-2022, 02:17 AM - Forum: Web Scraping & Web Development - Replies (2)

Python Obstacles | Kapap | Wiki Scraped Content [Column Nulling]

I am trying to learn how to null every row in an entire MariaDB 10.4..... More

Print this item

  what works with the with statement?
Posted by: Skaperen - Jan-02-2022, 11:19 PM - Forum: News and Discussions - Replies (7)

is there a list of everything that works with the with statement? or, alternatively, everything that does not work with the [u]w..... More

Print this item

  problem with while statement.
Posted by: BobSmoss - Jan-02-2022, 08:19 PM - Forum: General Coding Help - Replies (3)

Hello,
I am new to python and cant seem to find an answer to my question.Here is what i am trying to do.

I want to make a loop that for example la..... More


Attached Files

Thumbnail(s)
   
Print this item

  an httpd server
Posted by: Skaperen - Jan-02-2022, 07:14 PM - Forum: News and Discussions - Replies (9)

Python has module smtpd that implements an SMTP server. why not also httpd? other server protocols?

Print this item

Photo A humble VsCode Python Snippets 2.0
Posted by: medlexo - Jan-02-2022, 05:42 PM - Forum: General Coding Help - Replies (6)

Hi guys, I'm a bit new here. To be frank, after I publish the updated extension I do not know how to make it appear in the search section of vscode so..... More

Print this item

  Junos PyEZ
Posted by: bclanton50 - Jan-02-2022, 04:25 PM - Forum: General Coding Help - No Replies

I am experimenting with the PYEZ module and just want to connect to a Juper EX2200 switch and return the version. NetConf is not installed but I am u..... More

Print this item

  [Solved] How to print a dot leader.
Posted by: BashBedlam - Jan-02-2022, 03:27 PM - Forum: General Coding Help - Replies (4)

Does anyone know of a simpler way to display information with a dot leader?
[python]def add_dot_leader (text) :
new_text = ''
for index in range..... More

Print this item

  Query Syntax Error
Posted by: hammer - Jan-02-2022, 03:06 PM - Forum: General Coding Help - Replies (2)

I have compared this code with similar queries that work. Can anyone see what I am missing that is causing the Syntax Error?

[error]
Exception ha..... More

Print this item

Bug help with coding syntax
Posted by: newPython - Jan-02-2022, 01:00 PM - Forum: General Coding Help - Replies (4)

i am getting an invalid syntax on my python code am a newbie and i dont know what to do. can someone please help me restructure the code

[python]#c..... More

Print this item

  send mail is freezing
Posted by: rwahdan - Jan-02-2022, 09:06 AM - Forum: Web Scraping & Web Development - No Replies

Hi

I am trying to send an email but it is freezing and if i refresh the page everything is working except for the email part, it is not sent.

[p..... More

Print this item

  AttributeError: 'NoneType' object has no attribute 'group'
Posted by: MaartenRo - Jan-02-2022, 07:04 AM - Forum: General Coding Help - Replies (3)

Hi,

I would like my code to return '(415)'. What am i doing wrong?

[python]phoneNumRegex=re.compile(r'(\(\d\d\d\))(\d\d\d-\d\d\d\d)')
mo=phone..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Help with Serial.write in... 1 hour ago racingsubby racingsubby General Codin...
  Backward compatibility qu... 2 hours ago yutaozhou yutaozhou News and Disc...
  [Tkinter] I’m building a ... 4 hours ago tsgiannis Gribouillis GUI
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
Most views
  The best Prog... 578749
  Tutorial Requ... 509538
  Web Scraping ... 441880
  Newbie with P... 385852
  New Users Int... 375488
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12103
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
thebigback Yesterday
dimitriwati Yesterday
johnsonlucas83 Yesterday
ColorTig Yesterday
AcoolPurpleOne1863 Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020