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,237
» Latest member: lary_p
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
9 hours ago
» Replies: 4
» Views: 118
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 100
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 73
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 112
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,100
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,366
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,559
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 189
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,199
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,444

 
  New with Python. Help with a code
Posted by: jasonkeller1970 - Apr-14-2023, 05:43 PM - Forum: General Coding Help - Replies (13)

Hi,
I just registered in this site because I would like to know if it is possible to solve this problem with a simple Python code.
I'm not into prog..... More

Print this item

  appending 50 values in a row
Posted by: Naomisaka - Apr-14-2023, 11:17 AM - Forum: General Coding Help - No Replies

Hello, I hope this is a quick fix for the pros!

I'm working in Touchdesigner and I'm trying to append all 50 values from row 0:50 from an operator ..... More


Attached Files

Thumbnail(s)
   
Print this item

  logger behaviour
Posted by: setdetnet - Apr-14-2023, 08:48 AM - Forum: General Coding Help - Replies (1)

This setup in python 3.10 is not logging DEBUG to log file.
As in the last line....rootLogger.debug("debugging MantisMigrateAdditionalInfo.py")
Why..... More

Print this item

  event driven coding PyQt6 on Combobox change
Posted by: merrittr - Apr-14-2023, 01:55 AM - Forum: GUI - Replies (3)

I have the working code below running in a venv using python 3.7.6 what I want is when the Province combobox is changed have the stations combobox upd..... More


Attached Files

.py   HTTPListerProvincialQTEnv.py (Size: 2.54 KB / Downloads: 289)
Print this item

  notation
Posted by: MCL169 - Apr-14-2023, 01:49 AM - Forum: General Coding Help - Replies (8)

[python]
for line in lines: # str, '19260701,0.09,-0.22,-0.30,0.009\n'
curr_line = line.split() ..... More

Print this item

  scipy fftfreq parameters
Posted by: quest - Apr-14-2023, 12:11 AM - Forum: Data Science - Replies (1)

I am trying to get the fft of my pulse.
My total pulse duration is 1 microsecond and I have 100000 time slot in this pulse. So each interval correspon..... More

Print this item

  replacing dict contents
Posted by: Skaperen - Apr-13-2023, 10:25 PM - Forum: General Coding Help - Replies (6)

for a reference to a list, such as a global list, i can replace all the contents like this:
[python]
mylist[:] = newlist
[/pyt..... More

Print this item

  output provide the filename along with the input file processed.
Posted by: arjunaram - Apr-13-2023, 10:08 AM - Forum: General Coding Help - Replies (1)

Currently, i am processing all the input file column together and find missing column name from the table.

I am expecting to print the filename as ..... More

Print this item

  Modules
Posted by: GrahamLab - Apr-13-2023, 08:10 AM - Forum: General Coding Help - Replies (1)

Hi

I am fairly new to Python and modules in particualar

I have folder containing 2 files :
Configuration.py
HelixApi.py

COnfiguration..... More

Print this item

  Need help with this script
Posted by: Alie - Apr-13-2023, 06:22 AM - Forum: General Coding Help - Replies (3)

Hello friends. Below is a code I use in Google Colab. It works so slow that I wait for hours. Is it possible to edit this code to run faster? I would ..... More

Print this item

  html_table_parser_python3 KeyError odd behavior
Posted by: idratherbecoding - Apr-13-2023, 04:20 AM - Forum: General Coding Help - Replies (3)

Hello,

I am new to Python, but I have been hobby coding off and on for many years. I am working on a project to scrape sports data (NFL) and I am r..... More

Print this item

  Problem Calculating GPA
Posted by: FirstBornAlbratross - Apr-12-2023, 08:19 PM - Forum: Homework - Replies (3)

Hey all, I have created a simple program to try to convert letter grades into a GPA score, but my program calculations are a bit off.

[python]user_..... More

Print this item

  Pixel color and action
Posted by: Sartre - Apr-12-2023, 06:06 PM - Forum: General Coding Help - Replies (4)

I am very new to Python and decided to build a game bot as a means of learning. Please bear with me..

GOAL:
Part of my program evaluates a specific ..... More

Print this item

  Problems with converting to numeric
Posted by: EmBeck87 - Apr-12-2023, 05:14 PM - Forum: Homework - Replies (13)

This code for converting the values to numeric is also removing characters, I believe.

Can someone advise on how to alter it so it keeps the chara..... More

Print this item

  Printing specific values out from a dictionary
Posted by: mcoliver88 - Apr-12-2023, 04:52 PM - Forum: General Coding Help - Replies (6)

Hi All,

So I have created a dictionary:

[python]
myDict = {
"Name": {"Kindle Fire", "Samsung Galaxy Tab", "Dell Streak", "Apple iPad", "Len..... More

Print this item

  What module is missing?
Posted by: Led_Zeppelin - Apr-12-2023, 04:21 PM - Forum: General Coding Help - Replies (2)

I am getting thee error as shown in the following attachment. It says normal not found. I guess I am missing a library/module.

So, what module shou..... More


Attached Files

Thumbnail(s)
   
Print this item

  Understanding and debugging memory error crashes with python3.10.10
Posted by: Arkaik - Apr-12-2023, 03:36 PM - Forum: General Coding Help - Replies (5)

Hi,

I have a quite complex multi-threaded python script on a production environment (Debian 11.6 server) which regularly crashes using python3.10.1..... More

Print this item

  can someone explain this __del__ behaviour?
Posted by: rjdegraff42 - Apr-12-2023, 02:37 PM - Forum: General Coding Help - Replies (1)

I came across something interesting that I can't explain. Perhaps someone here can. When the following code is run with the lambda commented out it pr..... More

Print this item

  Newbie.... run for cover. OpenCV question
Posted by: Stevolution2023 - Apr-12-2023, 11:38 AM - Forum: General Coding Help - Replies (2)

Hello all

I have jumped in the deep end of Python. Done a little programming before, but not much in Python.

I found some OpenCV skeleton track..... More

Print this item

  Test Thread
Posted by: snippsat - Apr-12-2023, 04:35 AM - Forum: Board - No Replies

[python]from pathlib import Path
from os import fspath

dest = r'C:\bar'
with open('out1.txt', 'w') as f:
for path in Path(dest).rglob('*'):..... More

Print this item

  code won't advance to next statement
Posted by: MCL169 - Apr-11-2023, 07:53 PM - Forum: General Coding Help - Replies (2)

[python]
while True: # bool, True
year = input('please enter a 4-digit year: ')
digit = len(y..... More

Print this item

  Tkinter GUI question
Posted by: texan1836 - Apr-11-2023, 05:31 PM - Forum: GUI - Replies (3)

I am having trouble writing a python tkinter GUI. I am trying to create a popup window which has a grid of buttons that then returns a value. In the..... More

Print this item

  Pip lists the module but python does not find it
Posted by: Dato - Apr-11-2023, 11:20 AM - Forum: General Coding Help - Replies (2)

Hi people,

I am struggling to get a package that, supposedly, pip already installed.
the package in question is fenics. Installed with pip install..... More

Print this item

Sad extract frame from video error
Posted by: MrSonoa - Apr-11-2023, 09:15 AM - Forum: General Coding Help - No Replies

Hi and greetings , I am new to this forum. Who here really needs help from a python expert. I am a student and am currently doing a final year project..... More


Attached Files

Thumbnail(s)
       
Print this item

  How do I check if the first X characters of a string are numbers?
Posted by: FirstBornAlbratross - Apr-11-2023, 12:57 AM - Forum: General Coding Help - Replies (6)

How do I check if the first X characters of a string are numbers?

For example if someone inputs a combination of numbers and characters, how can I ..... More

Print this item

  populate a QListWidget
Posted by: devilonline - Apr-10-2023, 01:11 AM - Forum: GUI - Replies (1)

Hi

i want to populate a list widget but it always gives me this error

what can i do?

thanks

error: [quote]TypeError: addItems(self, Itera..... More

Print this item

  Pyserial Readline() conversion to array
Posted by: bprosman - Apr-09-2023, 05:00 PM - Forum: General Coding Help - Replies (1)

Dear all,

As the title already states I'd like to convert a line , read via the readline() function, I am already Googling all afternoon but cant f..... More

Print this item

  Webbrowser.open() causes errors
Posted by: ChrisOfBristol - Apr-09-2023, 04:19 PM - Forum: General Coding Help - Replies (1)

I didn't realise others could edit my posts. I am extremely uncomfortable with that.

Print this item

  Personal Project - JDR Tool Introduction (for data governance)
Posted by: ciphero - Apr-09-2023, 03:26 PM - Forum: Code sharing - No Replies

Hi,
I recently started learning Python, so I tried to write this project as an exercise. The idea of the concept is derived from the solution to the ..... More

Print this item

  I'm trying to make my Alexa/Echo dot 3 powered by ChatGPT....
Posted by: mariozio - Apr-09-2023, 02:44 PM - Forum: General Coding Help - Replies (1)

Hello.

I'm trying to make my Alexa/Echo dot 3 powered by ChatGPT. I would like to integrate ChatGPT into my Alexa / Echo dot 3. I want to have more..... More

Print this item

  Need help for script access via webdriver to an open web page in Firefox
Posted by: Clixmaster - Apr-09-2023, 10:49 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi@all,

I have the following task:

In a form in a LogIn area, keywords are to be entered one after the other into an input field with the ID "tags",..... More

Print this item

  switch case not working
Posted by: Username0089098 - Apr-09-2023, 05:01 AM - Forum: General Coding Help - Replies (1)

I am trying to read a file using a switch case and an input.




[python]while True:
choice = input("(1) Write A File\n(2) Read A File\n(3) Ap..... More

Print this item

  [Hiring] Looking for Data Sci/ML consultant to advise on a project
Posted by: pandadad123 - Apr-09-2023, 04:12 AM - Forum: Jobs - Replies (1)

Hi, I'm looking for a senior level data scientist with ML experience to advise us on a project that is in the requirements finding/discovery stage. T..... More

Print this item

  python convert multiple files to multiple lists
Posted by: MCL169 - Apr-08-2023, 10:36 PM - Forum: General Coding Help - Replies (6)

year = '1990'

filename = open('FF_abbreviated.txt')

for i in filename:
    print(i)
[output]19260701 0.09 0.22 ..... More

Print this item

  Is the following code returning a generator expression?
Posted by: quazirfan - Apr-08-2023, 07:30 PM - Forum: General Coding Help - Replies (8)

I am reading Python documentation on in operator,

Source: https://docs.python.org/3/reference/expr...operations

6.10..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 9 hours ago Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578699
  Tutorial Requ... 509190
  Web Scraping ... 441846
  Newbie with P... 385798
  New Users Int... 375100
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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