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,391
» Latest member: aylalittle1159
» Forum threads: 38,822
» Forum posts: 176,019

Full Statistics

Online Users
There are currently 55 online users.
» 2 Member(s) | 50 Guest(s)
Google, Bing, AOL, aylalittle1159, desy845

Latest Threads
When Did The Iphone 17 Pr...
Forum: General Coding Help
Last Post: aylalittle1159
1 minute ago
» Replies: 0
» Views: 3
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 56
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 230
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,066
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,892
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 137
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 82
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 146
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,295
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 107

 
  create new log file on logging?
Posted by: korenron - Mar-21-2022, 02:37 PM - Forum: General Coding Help - Replies (6)

Hello,
I'm using logging and I have notice that the file is not clean after reboot (program start again)
what do I need to do in order to "clean" th..... More

Print this item

  How to trigger for loop after while
Posted by: quest - Mar-21-2022, 06:41 AM - Forum: General Coding Help - Replies (2)

Hello,

This is my code:
[python]
input_number=3
layer=5
paulis = list(product(['I','X','Y','Z'],repeat=input_number))
a = list(pro..... More

Print this item

  The Match
Posted by: jefsummers - Mar-21-2022, 02:49 AM - Forum: Bar - No Replies

In my line of work, residency positions (doctors) are assigned by an annual event called The Match. Students apply to programs, programs invite for in..... More

Print this item

  Pygame with OpenGL on RPI Zero without X: invalid operation
Posted by: aserranoh - Mar-20-2022, 09:49 PM - Forum: General Coding Help - No Replies

Hello everyone!

I have the following code, which I just copied from a tutorial on internet (https://www.jarutex.com/index.php/2021/10/15/7164/):
..... More

Print this item

  SyntaxError
Posted by: DaveG - Mar-20-2022, 09:43 PM - Forum: General Coding Help - Replies (4)

Hi
Would someone be able to identify my syntax error please?
[error]
print ( >> fdeg , "%.8f %.8f %.5f" % (xx[ii], yy[jj], deformation[jj, ii]..... More

Print this item

  list sort() function bring backs None
Posted by: CompleteNewb - Mar-20-2022, 08:57 PM - Forum: General Coding Help - Replies (6)

i have a program that gives back a random list of numbers which i then sort using .sort() , but then this happened:

[python]
list1 = [1,1,1,1,..... More

Print this item

  Help with kivy for a learner
Posted by: Talbot9 - Mar-20-2022, 07:25 PM - Forum: General Coding Help - Replies (2)

Hello

Please forgive my inexperience but I'm new to coding I'm trying to find a good video guide on how to create some blocks for an app I'm makin..... More

Print this item

  Unable to count the number of tries in guessing game.
Posted by: Frankduc - Mar-20-2022, 06:39 PM - Forum: General Coding Help - Replies (7)

Hello,

pyscript is crashing if count = 0 declare inside def check(guess):
otherwise i get local variable 'count' referenced before assignment

[pyth..... More

Print this item

  can Inner Class reference the Outer Class's static variable?
Posted by: raykuan - Mar-20-2022, 05:49 PM - Forum: General Coding Help - Replies (6)

In the nested class, can Inner Class reference the Outer Class's static variable?

[python]
class Outer(object):
a = 111

class Inner(ob..... More

Print this item

  PyPi Download Counts and Warehouse Migration?
Posted by: tlee0818 - Mar-20-2022, 05:35 PM - Forum: General Coding Help - Replies (1)

I did a download count analysis on PyPi's projects, and found something interesting.

https://imgur.com/a/ZUWf28B

There is a significant jump in ..... More

Print this item

  Python Project
Posted by: sprocket - Mar-20-2022, 01:18 PM - Forum: Homework - Replies (2)

My son is studying Python at school. My knowledge is very basic in Python, but I do understand programming languages and coding. Unfortunately I an un..... More

Print this item

  How can users store data temporarily in flask app?
Posted by: darktitan - Mar-20-2022, 11:59 AM - Forum: Web Scraping & Web Development - Replies (6)

Hi
Im wondering how users in my app can store data temporarily?

Right now im using lists who shows some data the user inputs. It works kind off when ..... More

Print this item

  Could you explain each part of the code?
Posted by: Tsushida - Mar-19-2022, 07:47 PM - Forum: General Coding Help - Replies (2)

Hello! Could you guys explain to me each part of this code right here:

[python]n = int(input())
alpha = 'abcdefghijklmnopqrstuvwxyz'
print(*[''.j..... More

Print this item

  [split] TypeError: 'int' object is not callable
Posted by: flash77 - Mar-19-2022, 05:06 PM - Forum: General Coding Help - Replies (4)

Dear deanhystad,

I tried to create a form in tkinter because, as you mentioned, the player shouldn't have to install some extra packages.
(I'm pla..... More

Print this item

Question Beginner Boolean question [Guessing game]
Posted by: TKB - Mar-19-2022, 01:58 PM - Forum: General Coding Help - Replies (4)

Dear all,

I recently decided to study Python (no prior experience). I took the beginner course available on Youtube: https://www.youtube.com/watch?..... More


Attached Files

Thumbnail(s)
   
Print this item

  Webscrapping sport betting websites
Posted by: KoinKoin - Mar-19-2022, 10:07 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello everyone,

As part of my improvement in Python, I want to scrap some sport betting websites and try to compare the odds.
I have few websites ..... More

Print this item

  How to set a sequence of midi note on and note off values in ticks
Posted by: tomharvey - Mar-19-2022, 10:02 AM - Forum: General Coding Help - Replies (2)

Hello,

I am currently writing an application where i need to write midi files using the tick value for each notes duration and onset. I have decid..... More

Print this item

  Why is the if construct not calculating correctly?
Posted by: egemynet - Mar-19-2022, 09:33 AM - Forum: General Coding Help - Replies (21)

Why is the result wrong in the if structure below, it gives 1 every time, but it should be 2 in my checks (python 3.1)

[python]bars = exchange.fetc..... More

Print this item

  Array Indices?
Posted by: DaveG - Mar-19-2022, 01:56 AM - Forum: Homework - Replies (1)

Hi
My learning curve for Python is long.

I'm running a script that was used in someone else's project and I need to change some parameters to suit..... More

Print this item

  How does this next work?
Posted by: Pedroski55 - Mar-18-2022, 11:11 PM - Forum: General Coding Help - Replies (1)

Using next() with os.walk() I can very neatly and easily get all files in a folder and ignore other folders if present.

I have to say, I don't real..... More

Print this item

  how to assign items from a list to a dictionary
Posted by: CompleteNewb - Mar-18-2022, 10:46 PM - Forum: General Coding Help - Replies (3)

How can i simplify this code?

[python]
listplayers = [['player1', 5,1,300,100],['player2', 10,5,650,150],['player3', 17,6,1100,1050]]
dictionary ..... More

Print this item

  Controlling an Arduino with Python
Posted by: cubangt - Mar-18-2022, 01:40 PM - Forum: News and Discussions - Replies (5)

So while looking for some arduino assistance lastnight, i ran across some videos showing how to control an ardunio with python code..
All the videos..... More

Print this item

  map df1 to df2
Posted by: SriRajesh - Mar-18-2022, 11:19 AM - Forum: Data Science - Replies (5)

Hi,
I have two data frames:

[python]df1:
col1 col2 col3
A JY 1
C nY 13
MMS JY 41
K SA 94
..... More

Print this item

  Pandas + PIL on Linux (Python 32)
Posted by: Clives - Mar-18-2022, 11:03 AM - Forum: News and Discussions - Replies (3)

Greetings,

The environment is Linux, Python 2.7 32-bit

I have to load a number of Python 2.7, 32 bit library files (.whl/.egg) on Linux.
I tried sev..... More

Print this item

  My Code isn't working...
Posted by: End3r - Mar-18-2022, 10:54 AM - Forum: General Coding Help - Replies (4)

Hi. I am new to Python so I'm not that skilled. As I was coding my game, I realised something was up. When I went to play it and I inserted my name, n..... More

Print this item

  Plot several graphs on the same row
Posted by: Menthix - Mar-18-2022, 09:19 AM - Forum: General Coding Help - Replies (1)

Hello,
Here is a code that I use to plot multiple boxplots at the same time :

[python]for year in [2016,2017,2018,2019,2020,2021] :
plt.figu..... More


Attached Files

Thumbnail(s)
   
Print this item

  Fourier series in Python
Posted by: Armandito - Mar-18-2022, 09:01 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

I'm new here so I hope I'm in the right place to ask some questions !

I would like to get the equation of the Fourier series of ..... More


Attached Files

Thumbnail(s)
   
Print this item

  how do change data in a database
Posted by: CompleteNewb - Mar-17-2022, 10:06 PM - Forum: Data Science - Replies (5)

i have list of list

listofplayers = [[player1, 5,1,300,100],[player11, 10,5,650,150],[player23, 17,6,1100,1050]]

and i have a database

player..... More

Print this item

Bug multiprocessing
Posted by: Alivegamer - Mar-17-2022, 09:16 PM - Forum: General Coding Help - Replies (12)

So I'm trying to learn how to use multiprocessing and It looks like I have all the code correct but still returns "Done" and doesn't print hello and h..... More

Print this item

  Convert python dataframe to nested json
Posted by: kat417 - Mar-17-2022, 04:57 PM - Forum: General Coding Help - Replies (1)

I have flat csv data loaded into Data frame and trying to build nested json. I was able to build a nested json with orders as list but not able to add..... More

Print this item

  Sampling
Posted by: frohr - Mar-17-2022, 02:17 PM - Forum: General Coding Help - Replies (7)

Hi,
Is there any possibility how to read samples - one sample every 30microseconds?
Is it real in python?
I need read samples via GIPO pins, in tot..... More

Print this item

  position of shortest string
Posted by: Ali_ - Mar-17-2022, 11:07 AM - Forum: Homework - Replies (2)

Hello!
I have to create a function that takes as a parameter a list of strings. I need my function to return a number which is the position of the st..... More

Print this item

  Convert Date to another format
Posted by: lonesoac0 - Mar-17-2022, 09:49 AM - Forum: General Coding Help - Replies (2)

Hello all,

I am looking to convert the date format of: 2022-03-16 to: 2022-03-16 06:00:00+00:00

How do I do that?

Thank you.

Print this item

  Installing py Files
Posted by: DaveG - Mar-17-2022, 07:44 AM - Forum: Homework - Replies (1)

Hi
I have a bunch of .py files sitting in my command line directory path and I wish to install them to Python3. I have tried 'sudo apt install filena..... More

Print this item

  Solving an equation by brute force within a range
Posted by: alexfrol86 - Mar-17-2022, 05:31 AM - Forum: General Coding Help - Replies (3)

Hello! I try to solve the equation sqrt(x**2 + y**2) by brute force within the range [0, 10]. Please help me make this code work

[python]def eq(x, y)..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  When Did The Iphone 17 Pr... 1 minute ago aylalittle1159 aylalittle1159 General Codin...
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
Most views
  The best Prog... 580363
  Tutorial Requ... 519089
  Web Scraping ... 442771
  Newbie with P... 386954
  New Users Int... 386268
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aylalittle1159 Today
desy845 Today
atalieyandext4063 Yesterday
finallen321 Yesterday
DTECHSYSTEM Yesterday

User Panel Messages

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