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,259
» Latest member: JamesFalkner
» Forum threads: 38,783
» Forum posts: 175,839

Full Statistics

Online Users
There are currently 37 online users.
» 4 Member(s) | 29 Guest(s)
Bing, Google, Mojeek, AOL, kshahzad1985, tsgiannis, buran

Latest Threads
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
2 hours ago
» Replies: 0
» Views: 31
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 10
» Views: 205
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
5 hours ago
» Replies: 3
» Views: 109
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 193
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 372
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 124
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 256
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 408
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 154
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,647

 
  problem with code
Posted by: saratha - Mar-07-2021, 09:03 AM - Forum: General Coding Help - Replies (7)

Hi,
Here is a code:
[python]def beginning_zeros(x):
count = 0
for letters in x:
if letters == '0':
count += 1..... More

Print this item

  Python script on windows 10 shuts down
Posted by: TamP - Mar-07-2021, 08:55 AM - Forum: General Coding Help - Replies (2)

My python script runs on Windows 10. It uses various libraries including tkinter.
Opening it in idle, it runs perfectly.
I right click on the script..... More

Print this item

  Saving MP3 Tags to Songs
Posted by: giddyhead - Mar-07-2021, 02:53 AM - Forum: General Coding Help - Replies (9)

Is there a Mp3 module that has the same attributes as TinyTag and can also save the Tags to MP3 Songs?

Print this item

  issubclass() not as documented
Posted by: Skaperen - Mar-06-2021, 11:40 PM - Forum: News and Discussions - Replies (19)

documentation for builtin function issubclass() says it returns True for..... More

Print this item

  coding issues
Posted by: rooroo - Mar-06-2021, 11:11 PM - Forum: Homework - Replies (3)

Hi all,
I am fairly new to coding and python, I am studying it, and would like some help on a question that I have.

The question is:

They [the ..... More

Print this item

  Genetic Algorithm Tetris Python not improving
Posted by: Fanto88 - Mar-06-2021, 09:16 PM - Forum: Data Science - No Replies

I'm trying to create an AI using a Neural Network a Genetic Algorithm to learn how to play tetris, but it looks like something is wrong because, even ..... More

Print this item

  exception context
Posted by: Skaperen - Mar-06-2021, 08:42 PM - Forum: News and Discussions - No Replies

it is a commonly suggested idea to just let lower level code produce exceptions and let them propagate up to the caller that needs to handle them. bu..... More

Print this item

  Grid Placement In Python
Posted by: finndude - Mar-06-2021, 12:47 PM - Forum: GUI - Replies (2)

Hi All,

I have this code and it all works. What the issue I'm having is keeping everything all in the correct place because when some you get the r..... More

Print this item

  Not able to capture the parameters
Posted by: Codeexplorer - Mar-06-2021, 11:41 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi Friends,

I have scrapped first or second pages of several websites. But while scrapping bigbasket.com (an Indian grocery site), even if I am pas..... More

Print this item

Sad I can't print what I need and I can't figure it out **wall**
Posted by: icedragon978 - Mar-06-2021, 10:40 AM - Forum: Homework - Replies (2)

This is my code.
[python]
dasy_of_vaycay = int(input())
budget = float(input())
people = int(input())
gas_from_100 = float(input())
money_to_eat..... More

Print this item

  return in a function
Posted by: Skaperen - Mar-06-2021, 02:58 AM - Forum: News and Discussions - Replies (16)

suppose i have a bunch of code like
[python]
if first_name == 'alex':
return 1
if middle_name == 'larry':
return 2
if middle_name == 'ma..... More

Print this item

  coding problem from older book
Posted by: teddfirth - Mar-06-2021, 02:35 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

I've taken up coding as a hobby and have been going through some vintage programming books looking for coding problems and challeng..... More

Print this item

  Can I replace IF statements with a key lookup ?
Posted by: jehoshua - Mar-05-2021, 09:49 PM - Forum: General Coding Help - Replies (3)

If I have code like the following ( from https://python-forum.io/Thread-Convert-e...VCF-format ):

[python] name = ""
if 'cn'..... More

Print this item

  Using python to execute app or cmd that requires admin credentials
Posted by: thewolf - Mar-05-2021, 08:15 PM - Forum: General Coding Help - No Replies

Hey everyone I want to make a small python app that a user can run and it would run the windows 10 network reset function and automatically enter the ..... More

Print this item

  Command output to pdf (linux)
Posted by: Gribouillis - Mar-05-2021, 07:32 PM - Forum: Code sharing - No Replies

I call the following script 'a2pdf'. It sends a text on its standard input to a pdf format on its standard output, using the venerable a2ps utility an..... More

Print this item

  Changing Index of 2 List in python
Posted by: giddyhead - Mar-05-2021, 05:45 PM - Forum: General Coding Help - No Replies

Hi Everyone,

I have an issue/concern I have two lists column A(albm) and column N(tlt) and below are the code I used to create the lists.
What I a..... More

Print this item

  How to append a value to specific excel cell using openpyxl
Posted by: hobbyist - Mar-05-2021, 05:39 PM - Forum: General Coding Help - No Replies

So, I have a code that inserts values to cells on excel sheet. But it does not work. I have a for-loop for 100 values and stores only the 100th, in th..... More

Print this item

  convert a string to a number
Posted by: Naheed - Mar-05-2021, 04:12 PM - Forum: News and Discussions - Replies (7)

How will you convert a string to a number in python?

Print this item

  Variable declaration
Posted by: Asraful_Islam - Mar-05-2021, 04:10 PM - Forum: General Coding Help - Replies (5)

Suppose, I have a set A={'a','b','c'}. I want to declare variables look like N_a, N_b, N_c for every 'a','b','c' in A. Thanks in advance.

Print this item

  find the header location in a .bin file without reading the whole file at a time
Posted by: SANJIB - Mar-05-2021, 04:08 PM - Forum: General Coding Help - No Replies

The below code is okay to find the header locations in a .bin file. But I don't want to read whole file at a time. Because the header has different by..... More

Print this item

  How to plot 3D graph of non numerical value?
Posted by: Gevni - Mar-05-2021, 02:29 PM - Forum: General Coding Help - No Replies

I need some help in plotting a 3D graph with a non-numerical column value. My colleague told me that we can draw such a graph in python and I am very ..... More

Print this item

  places to buy custom 3d embroidered ball caps
Posted by: metulburr - Mar-05-2021, 02:23 PM - Forum: Board - Replies (2)

So i lost my linux ball cap i bought forever ago. I cant remember the site i bought it from. It only cost 40 dollars with a custom logo embroidered. I..... More


Attached Files

Thumbnail(s)
   
Print this item

  Running total counter
Posted by: Crenshaw - Mar-05-2021, 01:29 PM - Forum: General Coding Help - Replies (2)

I am working on a project that I need to keep a running total of how many times the output was signaled. I cannot figure out how to perform the operat..... More

Print this item

  pysnmp how to find msgGlobalData msgID from snmpV3 inform
Posted by: charliebsimms - Mar-05-2021, 11:13 AM - Forum: Networking - No Replies

We are using pysnmp to transform snmpV3 informs from devices and are successfully processing the messages.
Problem:
If alarms do not arrive i..... More

Print this item

  Not rounding to desired decimal places?
Posted by: pprod - Mar-05-2021, 10:29 AM - Forum: General Coding Help - Replies (2)

Hi,
I'm trying to get my head round this: I've rounded all items in a list (List A) to 5 decimal places and created a variable (List B) that takes th..... More

Print this item

  Python C++ wrapper problem
Posted by: JESuh - Mar-05-2021, 04:43 AM - Forum: General Coding Help - Replies (1)

Hello,
I'm trying to write some part of my code in c++ and wrap it to use in a code written in python.
(Because my code has many loops so it takes f..... More

Print this item

  How to dynamically change radiobutton text
Posted by: kenwatts275 - Mar-04-2021, 11:44 PM - Forum: GUI - Replies (2)

Hello everybody.
I am trying to dynamically change the text of a radio button.
Below is an example program. When you run it, when you click on the "..... More

Print this item

  Convert email addresses to VCF format
Posted by: jehoshua - Mar-04-2021, 10:22 PM - Forum: General Coding Help - Replies (2)

We need to transfer some names and email addresses from Claws mail address book to a Samsung Galaxy Tab A. To understand what the Galaxy wanted , did..... More

Print this item

  too many methods in class - redesign idea?
Posted by: Phaze90 - Mar-04-2021, 10:17 PM - Forum: General Coding Help - Replies (3)

I have one xml file (famtree.xml) that I read in, that holds many parameters about family tree data. It has many levels, root level is me, then parent..... More

Print this item

  Closing before complete
Posted by: finndude - Mar-04-2021, 09:51 PM - Forum: General Coding Help - Replies (3)

Hi All,

This code is supposed to have the computer pick a number, the player has 3 lives to guess the number, and when they run out of lives the ga..... More

Print this item

  tkinter button image
Posted by: Nick_tkinter - Mar-04-2021, 08:33 PM - Forum: GUI - Replies (4)

Hello.I have the following image inside a button and I want to cut the regional white color.How can I do it?
I also have (activaforefound = activebac..... More

Print this item

  Cleaning HTML data using Jupyter Notebook
Posted by: jacob1986 - Mar-04-2021, 07:58 PM - Forum: Web Scraping & Web Development - Replies (7)

I need help cleaning extracting HTML code, the output is showing the data with commas inbetween the information (small example shown as below). My ful..... More

Print this item

  How can I write a function with three parameters?
Posted by: MehmetAliKarabulut - Mar-04-2021, 04:24 PM - Forum: General Coding Help - Replies (1)

I want to write a function with three parameters in Python. The output of the function should be data frame and it should filter the list given to the..... More

Print this item

  How can I write a function with three parameters?
Posted by: MehmetAliKarabulut - Mar-04-2021, 04:01 PM - Forum: Homework - Replies (3)

I want to write a three parameter function in Python. The output of the function should be data frame and it should square the given column. For examp..... More

Print this item

  Help adding memory buttons/commands in the calculator
Posted by: joelpub - Mar-04-2021, 03:07 PM - Forum: General Coding Help - Replies (5)

Good morning. I have a calculator and I need to make the buttons MS (save to memory), M+ (sum what's saved in memory to the actual screen value) and M..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PyQt6 QWidgets and system... 2 hours ago stevecoh1 stevecoh1 GUI
  [solved] re.split issue 2 hours ago paul18fr deanhystad General Codin...
  Please guide me to comple... 5 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
Most views
  The best Prog... 578956
  Tutorial Requ... 510422
  Web Scraping ... 441971
  Newbie with P... 385991
  New Users Int... 377000
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8195
snippsat 7388
deanhystad 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
JamesFalkner Today
stevecoh1 Today
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday

User Panel Messages

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