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,235
» Latest member: Alfredd
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 40 Guest(s)
Bing, Google, Facebook, buran

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

 
  Teaching my kids Python - best resources?
Posted by: cnd - Nov-24-2022, 04:39 AM - Forum: Bar - Replies (8)

I've been coding since 1982, learned python seriously a few years back (I'm a perl bigot) and my teenagers are about to start University to learn codi..... More

Print this item

  'NoneType' error
Posted by: YL1985 - Nov-24-2022, 02:14 AM - Forum: General Coding Help - Replies (9)

Hello, quite new to Python and would be happy for some help with an exercise I'm working on.
I'm trying to write a tip with $ and % signs and get ans..... More

Print this item

  Json filter is not capturing desired key/element
Posted by: mrapple2020 - Nov-23-2022, 10:26 PM - Forum: General Coding Help - Replies (1)

Hello, I am trying to do the following:

1) Read the Json file (sample output attached).
2) If account ID is 4254254 AND "compliance": "Fail", I ne..... More


Attached Files

.json   to.json (Size: 3.21 KB / Downloads: 591)
Print this item

  Copying files if the name is in range
Posted by: tester_V - Nov-23-2022, 10:03 PM - Forum: General Coding Help - Replies (9)

Greetings!
I'm trying to copy files if the file name has a digit and it is in the range of 0-3.
files in a directory go like this:
file.txt
file-1..... More

Print this item

  add object and name in list
Posted by: 3lnyn0 - Nov-23-2022, 08:05 PM - Forum: General Coding Help - Replies (4)

Hi! How can I add in both list (in first fname and in second the person object) every time when I creat a Person?
Secondary how can I add in a list o..... More

Print this item

  How to create a menu and execute a function based on user selection in python?
Posted by: Thedarkphoenix - Nov-23-2022, 06:40 PM - Forum: Homework - Replies (1)

Hello, I am making a program that looks for the root of a polynomial by different methods (bisection, false position, raphson and secant).
I have the ..... More

Print this item

  data file for .exe program to access
Posted by: ose - Nov-23-2022, 04:51 PM - Forum: General Coding Help - Replies (2)

Hello.
My question is hypothetical regarding whether Python would be the correct choice.
I have written a few Python programs being an amateur, that ..... More

Print this item

  Length of rows
Posted by: Krissstian - Nov-23-2022, 03:03 PM - Forum: General Coding Help - Replies (1)

Hi,

How can I determine number of a value occur in a column from an sql db?

[python]con = pymysql.connect(host='localhost', user='root', password='*..... More

Print this item

  Read nested data from JSON - Getting an error
Posted by: marlonbown - Nov-23-2022, 12:32 AM - Forum: General Coding Help - Replies (5)

i[python]mport json

#Later this will be extracted from a file
RAW_DATA = """ {
“991998795651": {
"cloudformation": {
"CloudFormatio..... More

Print this item

  What does that angle brackets mean?
Posted by: NewPi - Nov-23-2022, 12:15 AM - Forum: Data Science - Replies (5)

Hey, I am learning some numpy, matplotlib and pandas stuff.
And I wondered about some angle brackets in the output of this code (housing is a pandas ..... More

Print this item

  PyAutogui write Dollar Sign Dutch keyboard not working
Posted by: alato - Nov-22-2022, 11:25 PM - Forum: General Coding Help - No Replies

Hi 2 every 1,

I am using PyAutoGui to automate a login with Putty.

if I use PyAutoGui.write('This sign $ is a dollar sign')
The output will be ..... More

Print this item

  Please help me [copy and paste file from src to dst]
Posted by: midomarc - Nov-22-2022, 11:02 PM - Forum: General Coding Help - Replies (2)

I need to copy and paste a file with certain extensions from one location to another and receive notify by Mail from outlook if file it doesn't alread..... More

Print this item

  Speeding up iterating over rows
Posted by: NeoXx - Nov-22-2022, 01:22 PM - Forum: Data Science - Replies (3)

I cannot figure out how to speed up the following problem by vectorising.

I have a big (millions of rows) Pandas DataFrame of price changes in time..... More


Attached Files

Thumbnail(s)
   
Print this item

  Openpyxl make LineChart
Posted by: SamLiu - Nov-22-2022, 06:54 AM - Forum: General Coding Help - No Replies

Hi all,
I want to use openpyxl make LineChart as Line with markers style.
when run code get new chart need to modify Horizontal axis crosses-->Axis ..... More

Print this item

  ModuleNotFoundError
Posted by: mawarir - Nov-22-2022, 12:33 AM - Forum: General Coding Help - Replies (1)

I am trying to run a code that works in another laptop but not sure why i am getting the following error message:

[b]ModuleNotFoundError: No module..... More

Print this item

  stock trading GUI
Posted by: astral_travel - Nov-21-2022, 09:37 PM - Forum: GUI - Replies (1)

how can i make something like the application in the attached picture ? (style wise)

the chart and the features around it has to be interactive........ More


Attached Files

Thumbnail(s)
   
Print this item

  bytearray object - why converting to ascii?
Posted by: Chepilo - Nov-21-2022, 05:36 PM - Forum: General Coding Help - Replies (2)

I am a new Python developer.
Albeit new, I come from a C background.

I have a file of bytes I want to read into a bytearray() object. SOME of t..... More

Print this item

  Need help fixing Index Error
Posted by: adesimone - Nov-21-2022, 05:09 PM - Forum: Homework - Replies (1)

Hi,

This is for a class project. The course is not a coding course, but we do use code to complete homework and projects (yes, it is as confusing a..... More

Print this item

  Add buttons to StackLayout after 'Enter'
Posted by: Sosik1993 - Nov-21-2022, 01:37 PM - Forum: GUI - No Replies

Hi! I'm beginner in Python.
I want to add buttons to Wyniki(StackLayout) when I write something in TextInput and click Enter. I have written a progra..... More


Attached Files

Thumbnail(s)
   
Print this item

  Menu Choice Selection not Working
Posted by: ChLenx79 - Nov-21-2022, 10:16 AM - Forum: General Coding Help - Replies (5)

Morning all. Hope you are all well.

So I have recently started to learn python and i am a bit stuck.

I am working on a simple menu but for some ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Python Program to Find the Factorial of a Number
Posted by: elisahill - Nov-21-2022, 07:55 AM - Forum: Homework - Replies (2)

[python]
# Python program to find the factorial of a number provided by the user.

# change the value for a different result
num = 7

# To take ..... More

Print this item

  Python Traceback Error
Posted by: mg24 - Nov-21-2022, 06:30 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I am running python script via command line, getting below error.
Error is showing in two py files.

Traceback
main.py at line ----->1..... More

Print this item

  python list out top 10 Memory utilisation
Posted by: mg24 - Nov-20-2022, 10:51 PM - Forum: General Coding Help - No Replies

Hi Team,

I want to read top 10 memory utilisation of my system.
other than os.

Below is attempted code which gives all result.

[python]
imp..... More

Print this item

  animating 2d heat map
Posted by: schniefen - Nov-20-2022, 10:00 PM - Forum: Homework - No Replies

Consider the following heat map:

[python]
from scipy import special
import numpy as np
import matplotlib.pyplot as plt

u0=200
r0x=25
r0y=25..... More


Attached Files

Thumbnail(s)
   
Print this item

  IQ and Programming
Posted by: astral_travel - Nov-20-2022, 08:08 PM - Forum: News and Discussions - Replies (3)

say,
would you say that high IQ is essential in being a skilled programmer ?

Print this item

  Simple animation -- time evolution of function
Posted by: schniefen - Nov-20-2022, 08:05 PM - Forum: Homework - No Replies

I would like to animate how a function evolves over time. I would like to do this using only plt.blablabla, not ax.blablabla. The function is defined ..... More

Print this item

  Tkinter Aproach of UserInput Feedback
Posted by: RichardeRicharde - Nov-20-2022, 07:16 PM - Forum: GUI - Replies (2)

Hi There,
I wrote a simple math game for children and because i think it get´s more played by my son if there is an gui interface i try to rewrite it..... More

Print this item

  Different rows colours in treeview tkinter
Posted by: Krissstian - Nov-20-2022, 06:45 PM - Forum: GUI - Replies (1)

I have a treeview wich is populated from an sql DB:

[python] def fetch_data():
con = pymysql.connect(host='localhost', user='ro..... More

Print this item

  AssertionError when trying the sys module in python
Posted by: BliepMonster - Nov-20-2022, 12:50 PM - Forum: General Coding Help - Replies (10)

I was trying to make it so that it wrote the variable 'hp' in red.
[python]
import sys
color = sys.stdout.shell
hp = 100
color.write(hp, 'COMMENT')
[..... More

Print this item

Star Let me know what do you think about my app.
Posted by: wrcbit - Nov-20-2022, 11:56 AM - Forum: Code Review - No Replies

Hi guys,
Im new here and this is my first post, but it doesn't matter. Be as critic as possible. I code in python for a while and today I created too..... More

Print this item

  pygame double jump problem
Posted by: Yegor123 - Nov-20-2022, 05:04 AM - Forum: Game Development - Replies (2)

Im making a platformer game and I added the jump function but for some reason my player can do double jumps triple jumps and so on how do I fix this
..... More

Print this item

  better way to return a selected value
Posted by: Skaperen - Nov-20-2022, 04:23 AM - Forum: News and Discussions - Replies (2)

which is better or more Pythonic?

A:

...
if s1 < s2:
    return -1
if s1 > s2:
    return 1
return 0
B:
[python]
........ More

Print this item

  2 if statements happening at the same time
Posted by: M0TH - Nov-19-2022, 10:14 PM - Forum: General Coding Help - Replies (3)

hi I'm looking at all these other forum posts and they seem a lot more complex so sorry if this is a waste of time

im really new to python but i ca..... More

Print this item

  python code tp determin a userName and print message
Posted by: jackAmin - Nov-19-2022, 07:58 PM - Forum: Homework - Replies (4)

am new to programming bearly two weeks and have this question below to answer: i need assistance

5-8. Hello Admin: Make a list of five or more userna..... More

Print this item

  How do I emulate a Forza telemetry server and a Bluetooth OBD device?
Posted by: eswsdeth - Nov-19-2022, 07:38 PM - Forum: Game Development - Replies (3)

I'm making a driving game in Pygame, and want to give a player the option to send game data to a Forza compatible dashboard app or to an OBD app like ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 6 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 8 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578677
  Tutorial Requ... 509068
  Web Scraping ... 441835
  Newbie with P... 385785
  New Users Int... 375022
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
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday
ironwolfan7Dip Yesterday

User Panel Messages

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