Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,931
» Latest member: Lenowell
» Forum threads: 38,720
» Forum posts: 175,500

Full Statistics

Online Users
There are currently 55 online users.
» 0 Member(s) | 46 Guest(s)
Bing, Google, Applebot, AOL, Twitter

Latest Threads
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
2 hours ago
» Replies: 1
» Views: 339
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,337
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,459
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 282
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 91
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,806
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,055
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 746
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-14-2025, 11:25 AM
» Replies: 7
» Views: 2,108
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Sep-14-2025, 11:16 AM
» Replies: 4
» Views: 15,976

 
  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

  BCP Export sql data to csv
Posted by: mg24 - Nov-19-2022, 05:16 PM - Forum: General Coding Help - Replies (2)

Hi Team,

I found below code on google, while searching for BCP Export with header.

-h-1 ------ this removes header as per their explanation, Bu..... More

Print this item

  Python Scripting Environment
Posted by: jpotter0 - Nov-19-2022, 12:09 PM - Forum: General Coding Help - Replies (1)

Two or so years ago I wrote a Python Program for ANSYS scripting that had the following code snippet in it:
[python]
import ScriptEnv
ScriptEnv.Ini..... More

Print this item

  Old style TIF compression
Posted by: DPaul - Nov-19-2022, 11:01 AM - Forum: Bar - Replies (2)

Hi,
I have come across a huge batch of tifs, scanned a long time ago.
When opened in the normal fashion with PIL:
[python]img = Image.open(scanPath)[/..... More

Print this item

  Check DataFrames with different sorting in columns and rows
Posted by: Foxyskippy - Nov-19-2022, 07:49 AM - Forum: General Coding Help - No Replies

Hi,

I got multiple excel file which needs to be need if OLD data is matching NEW data. Normally I use dataframe.equals but since the NEW data is co..... More


Attached Files

.xlsx   AA_Table002.xlsx (Size: 15.61 KB / Downloads: 248)
.xlsx   AA_Table001.xlsx (Size: 14.71 KB / Downloads: 302)
Print this item

  Python with C
Posted by: Skaperen - Nov-19-2022, 03:25 AM - Forum: News and Discussions - Replies (3)

i want to get started writing some code that involves C. one aspect i want to ask those here that mix Python and C. is it preferred to have C coded ..... More

Print this item

  How to remove patterns of characters from text
Posted by: aaander - Nov-19-2022, 02:16 AM - Forum: General Coding Help - Replies (4)

I'm still in the learning process with Python, I need to delete each iteration of "%", and the two characters that follow it, which should be alphanum..... More

Print this item

Question log.exception() without arguments in old Python versions?
Posted by: cthart - Nov-18-2022, 09:16 PM - Forum: General Coding Help - Replies (5)

I have inherited some very old Python code:

import logging
_log = logging.getLogger('blah')
and later:

[python]
try:
..... More

Print this item

  which design / pattern when building classes and subclasses
Posted by: Phaze90 - Nov-18-2022, 08:53 PM - Forum: General Coding Help - Replies (2)

I need to build a mother-child-like class tree.

Dont know which is the best practice how to structure it.

I could define a top-level class A whi..... More

Print this item

Photo String comparison in a csv file in Python Pandas
Posted by: fleafy - Nov-18-2022, 08:05 PM - Forum: General Coding Help - Replies (2)

I am currently working on a huge csv file which I need to select a row and compare it with every other row. Which then should return me how much of th..... More

Print this item

  QGridLayout, QProgressBar bar fills widgets shrink
Posted by: malonn - Nov-18-2022, 07:54 PM - Forum: GUI - Replies (5)

I have a QGridLayout with some QLabels and QLineEdits and a QProgressBar. As the progress bar fills, the QLineEdits shrink. What's up with that. Co..... More

Print this item

  python sql query single quote in a string
Posted by: mg24 - Nov-18-2022, 07:40 PM - Forum: General Coding Help - Replies (1)

Hi Team,

I am extracting sql table data via python , while extracting data , portfolio contains single quote in its records.


hence my second ..... More

Print this item

  command require close window
Posted by: Krissstian - Nov-18-2022, 06:49 PM - Forum: GUI - Replies (14)

Hi,
I have defined a command for a button wich terminates like this:

[python] # save map data to data object
data = io.BytesI..... More

Print this item

  Reading large crapy text file in anaconda to profile data
Posted by: syamatunuguntla - Nov-18-2022, 06:15 PM - Forum: Data Science - No Replies

Hello,

I am new to python and learning on my own pace. i have a large text file with over 200 columns and few million rows. i am trying to profile ..... More

Print this item

  Command error - cursor.executemany(comandoSQL,valoresInserir)
Posted by: TecInfo - Nov-18-2022, 01:05 PM - Forum: General Coding Help - Replies (2)

Good morning,
I'm developing a program that records data coming from JSON in the MySQL database, but it's generating the following error.
[error]
T..... More

Print this item

  Attempting to read keyboard outside of console
Posted by: Jimmy998 - Nov-18-2022, 12:16 PM - Forum: General Coding Help - Replies (5)

You know the input function? where you store a string into a variable? Yeah, I don't need that, for at least that does not benefit me.

My attempt ..... More

Print this item

  pycharm debug help
Posted by: mg24 - Nov-18-2022, 03:15 AM - Forum: General Coding Help - Replies (1)

Hi Team,

how to debug in pycharm ?
in a situation where I am accepting input value via command line argument.

But when I run python script via comma..... More

Print this item

  Need to match two words in a line
Posted by: tester_V - Nov-18-2022, 12:28 AM - Forum: General Coding Help - Replies (2)

Good evening!
I'm trying to match two words and the "(" in a line.
these are" FAILED (Exit ", there is a space before the FAILED and after the Exit..... More

Print this item

  Python code a Max7219/7221 7 segment driver
Posted by: Aggie64 - Nov-17-2022, 10:31 PM - Forum: General Coding Help - Replies (11)

I am trying to use Pythons 3 SPI code to write directly to a MAX7219/7221 seven segment driver. I have written the code and connected a MAX7219 to my..... More

Print this item

  Help with list homework
Posted by: eyal123 - Nov-17-2022, 08:40 PM - Forum: Homework - Replies (5)

I have a list that compared from 3 lists that compered from 0,1,2
like that:
[python][
[0, 0, 2, 2, 0, 1, 1],
[1, 0, 0, 0, 1, 0, 0],
..... More

Print this item

  Replace columns indexes reading a XSLX file
Posted by: Larry1888 - Nov-17-2022, 04:53 PM - Forum: General Coding Help - Replies (2)

Hi all!

I am trying to make my code read certain indexes of an excel file depending on the type of configuration it has in the database, for exampl..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Another app idea - intera... 2 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
  Python Installation issue 09-14, 11:16 RFHill Dev News and Disc...
  New to the field 09-14, 08:15 Polybunny Larz60+ News and Disc...
Most views
  The best Prog... 575783
  Tutorial Requ... 497018
  Web Scraping ... 439796
  Newbie with P... 383481
  New Users Int... 365226
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday
Williefaree Yesterday
faithsally Yesterday

User Panel Messages

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