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,247
» Latest member: Kacper
» Forum threads: 38,779
» Forum posts: 175,813

Full Statistics

Online Users
There are currently 53 online users.
» 1 Member(s) | 45 Guest(s)
Bing, Google, Twitter, AOL, kshahzad1985

Latest Threads
New to python and coding
Forum: Homework
Last Post: Larz60+
11 hours ago
» Replies: 1
» Views: 55
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Today, 09:52 AM
» Replies: 11
» Views: 266
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Today, 09:41 AM
» Replies: 3
» Views: 106
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Today, 05:07 AM
» Replies: 5
» Views: 234
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 92
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,602
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 190
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 174
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,910
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,410

 
  Homework Help
Posted by: ChristianOOOO - Oct-11-2021, 02:18 AM - Forum: Homework - Replies (4)

Hey, I'm new here and new to programming. All of the questions were pretty easy to figure out but I'm having difficulty with the last questions.

It..... More

Print this item

  printing an string instead of a expression
Posted by: Underscore - Oct-11-2021, 01:21 AM - Forum: General Coding Help - Replies (2)

i want to print literally the string "\n", not the expression \n
how would i do that?

Print this item

  [SOLVED] Read text file from some point till EOF?
Posted by: Winfried - Oct-10-2021, 09:25 PM - Forum: General Coding Help - Replies (1)

Hello,

I need to jump to a given string in a text file, and grab everything from that point to the end of the file for further processing using a r..... More

Print this item

  Multiple loops
Posted by: Paulman - Oct-10-2021, 08:00 PM - Forum: General Coding Help - Replies (4)

Hello, I'm writing a short program in Python 3.8 (Pycharm) with the following target: welcomes users in a party as they check in.
The steps are the f..... More

Print this item

Exclamation Homework( Solution found)
Posted by: Zaochen - Oct-10-2021, 06:04 PM - Forum: Homework - Replies (2)

hello just starded to following studies in python but there are short(4h once in 2 weeks) and dont explain everything what we get in in our homework ..... More

Print this item

  Convert legacy print file to XLSX file
Posted by: davidm - Oct-10-2021, 01:08 PM - Forum: General Coding Help - Replies (1)

Hi, I have a project to convert a print file (attached) to xlxs format. I've created the Excel headers (attached) and would like to append the columns..... More


Attached Files

Thumbnail(s)
       
Print this item

  Parsing a syslog file
Posted by: ebolisa - Oct-10-2021, 08:48 AM - Forum: General Coding Help - Replies (11)

Hi,

I'm trying to extract data from a system log file but, I cannot get the syntax right.
Particularly, I'm trying to get the username and its tim..... More

Print this item

  PySide2 and QMediaPlayer
Posted by: menator01 - Oct-10-2021, 06:01 AM - Forum: GUI - Replies (19)

I've been trying to get mp3 files to play using QMediaPlayer with no success. Can anyone shed some light on what I'm missing?
The basic code. If you ..... More

Print this item

  pysql connection to cloud server database times out
Posted by: Pedroski55 - Oct-10-2021, 12:43 AM - Forum: General Coding Help - Replies (9)

I have only ever used shared web hosting for my little webpages. That makes things easy for people like me who are not so computer-fit.

Now I have re..... More

Print this item

  matplotlib, no plot when using Figure
Posted by: ajvperth - Oct-10-2021, 12:37 AM - Forum: General Coding Help - Replies (2)

Hello,
as I am breaking by brains about this, I hope you can give me a suggestion.
I work on Linux / openSUSE 15.3 and python 3.9.4 in a virtual con..... More

Print this item

  Using Mock with python
Posted by: Hocinema - Oct-10-2021, 12:17 AM - Forum: Code Review - Replies (4)

Hello,

I need help to mock some Class/variable in python test. Here is the scenario:

[python]
app_client.py
class AppClient:

def..... More

Print this item

  Scrollbar
Posted by: apffal - Oct-09-2021, 08:16 PM - Forum: GUI - Replies (7)

Using Canvas I get scrollbar in the right side of the form.
Is not possible put the scrollbar inside listbox ?

This is my relevant code

[python..... More

Print this item

  Updating to Python 3.10 on Windows
Posted by: rafaeldominiquini - Oct-09-2021, 05:07 PM - Forum: News and Discussions - Replies (4)

I have Python 3.9.7 (x64) installed on my Windows 10. When I download the Python 3.10.0 installer, I don't see the option to update/replace my current..... More

Print this item

  how to view all installed software in a dialog
Posted by: Tyrel - Oct-09-2021, 03:02 PM - Forum: General Coding Help - Replies (6)

Good day,

I am trying to view installed software in a dialog where the buttons are the names and when you click on a button is prints the path of t..... More

Print this item

  Homework
Posted by: chickenseizuresalad - Oct-09-2021, 11:39 AM - Forum: Homework - Replies (4)

Hi,I have a homework question: Write a program that will ask for a favorite genre (type) of music, and then make a recommendation.
I have attempted it..... More

Print this item

  About List & Tuples
Posted by: MilesWeb - Oct-09-2021, 09:47 AM - Forum: News and Discussions - Replies (4)

We know that Lists are mutable i.e they can be edited. Also Tuples are immutable i.e. tuples can’t be edited.

How would you differentiate between t..... More

Print this item

  ImportError: cannot import name 'Pyfhel' from 'Pyfhel'
Posted by: Anldra12 - Oct-09-2021, 08:31 AM - Forum: General Coding Help - Replies (11)

I use some recently GitHub publish code ----->https://github.com/ibarrond/Pyfhel it return me error [error]ImportError: cannot ..... More

Print this item

  Compare two Excel sheets with Python and list diffenrences
Posted by: dmkfon - Oct-09-2021, 08:29 AM - Forum: General Coding Help - Replies (1)

Hello,
I have issue with my program. The aim of this program is to compare two Excel sheets and then list (display/print) differences in another shee..... More


Attached Files

.xlsx   Modele_Tiers_Exemple.xlsx (Size: 10.09 KB / Downloads: 867)
Print this item

  Mysql. Not all parameters were used in the SQL statement
Posted by: cybertooth - Oct-09-2021, 07:35 AM - Forum: General Coding Help - Replies (5)

Hi all I am getting this error" Not all parameters were used in the SQL statement" when I try to insert values in mysql database through a Tkinter GUI..... More

Print this item

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 11 hours ago lary_p Larz60+ Homework
  [Tkinter] I’m building a ... Today, 09:52 tsgiannis tsgiannis GUI
  Help with Serial.write in... Today, 09:41 racingsubby Larz60+ General Codin...
  Backward compatibility qu... Today, 05:07 yutaozhou Gribouillis News and Disc...
  [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
Most views
  The best Prog... 578802
  Tutorial Requ... 509758
  Web Scraping ... 441907
  Newbie with P... 385898
  New Users Int... 375910
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+ 12105
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Kacper Today
isla123456 Today
vibrometro Today
thebigback Yesterday
dimitriwati Yesterday

User Panel Messages

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