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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,936
» Latest member: MihaiPope
» Forum threads: 38,723
» Forum posts: 175,511

Full Statistics

Online Users
There are currently 58 online users.
» 0 Member(s) | 50 Guest(s)
Applebot, Bing, Internet Archive, Google, AOL, Mojeek, AOL

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
7 hours ago
» Replies: 2
» Views: 272
FAST,SECURE AND RELIABLE ...
Forum: Game Development
Last Post: MihaiPope
8 hours ago
» Replies: 0
» Views: 134
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
8 hours ago
» Replies: 10
» Views: 3,722
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,350
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 660
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,110
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 999
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,233
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,238
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,349

 
Bug how can i adding custom path for saving the zip_file
Posted by: demonvictor - Oct-09-2021, 07:28 AM - Forum: General Coding Help - Replies (1)

I am creating a zip file using the zipfile module.It works like a charm. but thats file, saved in the executed script place.
my script path is a:
[b..... More

Print this item

  rows from sql query need to write to a file as columns
Posted by: sjcsvatt - Oct-08-2021, 09:09 PM - Forum: General Coding Help - Replies (6)

I have a query that may have dynamic number of columns. I have include 2 columns for testing purpose. whenever they added fields to the table the numb..... More

Print this item

  what if __getattr__() can't find an attribute, either?
Posted by: Skaperen - Oct-08-2021, 07:19 PM - Forum: General Coding Help - Replies (1)

what if __getattr__() can't find an attribute, either? what should it do? return None?

Print this item

  How To Create A "Birthday Calculator" in Python?
Posted by: unigueco9 - Oct-08-2021, 02:56 PM - Forum: General Coding Help - Replies (3)

Hi, I'm relatively new to Python and I want to create a program with Python that can calculate how many days are left until your birthday. However I'm..... More

Print this item

  Thoughts on interfacing with a QR code reader that outputs keystrokes?
Posted by: wrybread - Oct-08-2021, 02:19 PM - Forum: General Coding Help - Replies (1)

I have a hardware QR code reader that seems to act as a regular HID device (keyboard), and when it detects a QR code it outputs a long string. For exa..... More

Print this item

  How to find I2C library in Python
Posted by: Joni_Engr - Oct-08-2021, 02:02 PM - Forum: General Coding Help - Replies (1)

Hi,

I am looking for I2C library that I can use to read the data from I2C slave module using MCP2221. Does compatible library exist ?

Print this item

  plot on the same figure using a for loo with matplotlib
Posted by: drSlump - Oct-08-2021, 10:45 AM - Forum: General Coding Help - Replies (2)

I plot lists' element, which is itself element of a dictionary, in several figure using a for loop
[python] for ind, item in enumerate(drop_down_..... More

Print this item

  Rounding issue
Posted by: kmll - Oct-08-2021, 09:38 AM - Forum: General Coding Help - Replies (1)

I am writing a simple program to calculate the zero point for a function. However it will never find it because of rounding. Any suggestions of how th..... More

Print this item

  How to add product details in exe generated by pyinstaller
Posted by: arex786 - Oct-08-2021, 04:35 AM - Forum: General Coding Help - Replies (1)

So, I am using the pyinstaller, and created my exe through auto-py-to-exe. The problem I see, I lack details of product info
How may I add these deta..... More


Attached Files

Thumbnail(s)
   
Print this item

  deleting select items from a list
Posted by: Skaperen - Oct-08-2021, 01:53 AM - Forum: General Coding Help - Replies (13)

i want to delete select items from a list, such as those which have a specific value in a dictionary. this often gets pretty ugly. maybe i wa..... More

Print this item

  Planning High Level Drawing Library
Posted by: nadapez - Oct-08-2021, 01:22 AM - Forum: News and Discussions - No Replies

I am planning to start a project to develop a high level drawing python library.
I want to target both Gtk and tkinter, but also I want the library ..... More

Print this item

  TIOBE Index for October 2021 - Python programming language number 1!
Posted by: Yoriz - Oct-07-2021, 10:51 PM - Forum: News and Discussions - Replies (1)

[quote="https://www.tiobe.com/tiobe-index/"]
For the first time in more than 20 years we have a new leader of the pack: the Python programming langua..... More

Print this item

  Python 3.10 is Released
Posted by: snippsat - Oct-07-2021, 10:29 PM - Forum: News and Discussions - Replies (1)

Release Python 3.10.0
One big new thing is the new switch/case statements version on..... More

Print this item

Question Help creating an asterisk and T diamond
Posted by: xxxlabradorxxx - Oct-07-2021, 09:54 PM - Forum: Homework - Replies (2)

Hi, I need to create a T diamond mixed with asterisks, so I was hoping someone could help me with the best way to go about doing this.

Enter th..... More

Print this item

  How psycopg2 autocommit works ?
Posted by: johntay - Oct-07-2021, 08:39 PM - Forum: General Coding Help - Replies (3)

Hi,

I'm working on a "simple" script that makes use of psycopg2.
The script takes some time to finish (not the problem), while I was trying to do ..... More

Print this item

  Why is dictionary length not 20?
Posted by: Mark17 - Oct-07-2021, 05:42 PM - Forum: General Coding Help - Replies (2)

Hi all,

Here's some code:

[Python]
test_keys = []

for i in range(0,20):
n = random.randint(1,20)
test_keys.append(n)
#print(rando..... More

Print this item

  continuing an f-string
Posted by: Skaperen - Oct-07-2021, 01:34 PM - Forum: News and Discussions - Replies (2)

i just discovered that when continuing an f-string, what i quoted next needs to also be an f-string if it has any formatting elements that need to be ..... More

Print this item

  Having trouble with my Computer Science task
Posted by: Dunxx - Oct-07-2021, 11:03 AM - Forum: Homework - Replies (1)

My computer science teacher doesn't know python, ive spent 20 minutes trying to figure this out but cannot.
This is my task

You are required to pr..... More


Attached Files

Thumbnail(s)
   
Print this item

  install apache-airflow[postgres,google] on Python 3.8.12 virtual env
Posted by: ShahajaK - Oct-07-2021, 10:23 AM - Forum: General Coding Help - Replies (1)

Hello all, this is my first time here so apologies if something is missed or in the wrong place.

I want to create a python 3.8.12 virtual env with ..... More

Print this item

  Radio butto to enable/disable combo box in Tkinter
Posted by: cybertooth - Oct-07-2021, 08:28 AM - Forum: GUI - Replies (5)

I have two rows of combo boxes representing two different groups. the user needs to select either of the group and then choose different values from t..... More

Print this item

  Matplotlib Animation with Threading
Posted by: peterjv26 - Oct-07-2021, 05:12 AM - Forum: General Coding Help - Replies (4)

I have a requirement to do animation with matplotlib and also generate/manipulate the data to be plotted. I was hoping to get this done in the same pr..... More

Print this item

  Creating a function interrupt button tkinter
Posted by: AnotherSam - Oct-07-2021, 05:02 AM - Forum: GUI - Replies (2)

[code]from tkinter import *

def start(num):
global sweepCancel
print(num)
if num < 10:
num = num +1
sweepCancel=wi..... More

Print this item

  Cannot install tensorflow, numpy etc in Pycharm with Python 3.10
Posted by: plumberpy - Oct-07-2021, 02:31 AM - Forum: General Coding Help - Replies (2)

I cannot install tensorflow, numpy etc in Pycharm with Python 3.10

Am I doing something wrong or have to wait for tensorflow etc to be compatible w..... More

Print this item

  Retrieving a column from a data set using a function
Posted by: Bayle - Oct-06-2021, 05:51 PM - Forum: General Coding Help - Replies (6)

Hello all, this is my first time here so apologies if something is missed or in the wrong place.

I have recently started to learn to code and I am st..... More

Print this item

  Synconizing mobile app to desktop
Posted by: hammer - Oct-06-2021, 01:33 PM - Forum: General Coding Help - Replies (2)

Just looking for some expert direction on things to research to achieve the following.Note i am just learning python but have programmed some in VB. I..... More

Print this item

Star I'm getting syntax error while using input function in def.
Posted by: yecktmpmbyrv - Oct-06-2021, 08:56 AM - Forum: General Coding Help - Replies (1)

Please tell me what is wrong and why it is wrong? what is wrong with indentation? please explain
Error when input() is given below def():

[attachm..... More


Attached Files

Thumbnail(s)
       
Print this item

  Using Qt to emit a signal (or maybe with QTimer)
Posted by: pyhill00 - Oct-06-2021, 08:12 AM - Forum: GUI - Replies (1)

I am trying to send an .hdf5 file to a method in the main python file in the class here:[python]

class DesignerMainWindow(QtGui.QMainWindow, ..... More

Print this item

  How to recognize negative in a text?
Posted by: AlekseyPython - Oct-06-2021, 07:54 AM - Forum: Data Science - Replies (1)

With word2vec I can vectorize both individual words and whole texts (as the arithmetic mean of all words included in the text). But at the same time, ..... More

Print this item

  Slittping table into Multiple tables by rows
Posted by: drunkenneo - Oct-06-2021, 06:07 AM - Forum: General Coding Help - Replies (1)

I have a dataframe which have data in it eg:

A B C
1 2 3
4 2 3
D F C
4 5 7

I want the dataframe to split into two diff..... More

Print this item

  Exit function from nested function based on user input
Posted by: Turtle - Oct-05-2021, 08:02 PM - Forum: General Coding Help - Replies (5)

Hello,

Currently making a chat bot that helps with adding some items to a database. I want a user to be able to start adding something to a databa..... More

Print this item

  multiplying an iterator
Posted by: Skaperen - Oct-05-2021, 06:00 PM - Forum: News and Discussions - Replies (9)

if this didn't raise an exception, would you expect it to produce an iterator that multiplies this given iterator?
[python]
given = reversed('foobar..... More

Print this item

  Have you considered adding a section for MicroPython?
Posted by: Tiel - Oct-05-2021, 03:16 PM - Forum: Board - Replies (7)

Sure, I know hardly anyone uses MicroPython but for entirely selfish reasons I would like to see a section on this forum for MicroPython.

Of course..... More

Print this item

  Why not allow users to offer paid bounties?
Posted by: Tiel - Oct-05-2021, 03:04 PM - Forum: Board - Replies (5)

When I ask questions on python-forum.io I typically wonder why users don't have the option to offer paid bounties like https://www.bountysource.com/...... More

Print this item

  Removing nan values from a dict
Posted by: tomtom - Oct-05-2021, 02:57 PM - Forum: General Coding Help - Replies (8)

I have this dict:

Output:
[438.4, 439.18, 439.9, 440.21999999999997, 440.38, 441.08000000000004, nan, nan, nan, nan]
Please how can I rem..... More

Print this item

  PyautoGUI- How to use If - Else with pyautogui.locateCenterOnScreen
Posted by: Tiel - Oct-05-2021, 12:47 PM - Forum: General Coding Help - Replies (3)

Essentially I want my Python script to perform this...

[python] x = True
if x == True:
print('Congratulations, you won!')
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 7 hours ago arbiel arbiel General Codin...
  FAST,SECURE AND RELIABLE ... 8 hours ago MihaiPope MihaiPope Game Developm...
  403 Error 8 hours ago CaptainNewb CaptainNewb Web Scraping ...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576253
  Tutorial Requ... 497922
  Web Scraping ... 440186
  Newbie with P... 384028
  New Users Int... 366746
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12089
buran 8175
snippsat 7367
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
MihaiPope Yesterday
Baran12332 Yesterday
Hershien Yesterday
Diyaseating Yesterday
marineoman Yesterday

User Panel Messages

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