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,294
» Latest member: alexcarteraus
» Forum threads: 38,795
» Forum posts: 175,884

Full Statistics

Online Users
There are currently 38 online users.
» 0 Member(s) | 31 Guest(s)
Google, Bing, AOL, Facebook

Latest Threads
How to Score Better Grade...
Forum: General Coding Help
Last Post: alexcarteraus
27 minutes ago
» Replies: 0
» Views: 8
silent deployment Python ...
Forum: News and Discussions
Last Post: Bummibaer
1 hour ago
» Replies: 0
» Views: 5
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
7 hours ago
» Replies: 6
» Views: 194
PyQt5 - Get a parameter f...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:18 PM
» Replies: 5
» Views: 89
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 70
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,507
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 165
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 77
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,110
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,313

 
  JSON vs PYON
Posted by: Skaperen - Oct-29-2019, 04:03 AM - Forum: News and Discussions - Replies (18)

JSON (JavaScript Object Notation) is really just data in JavaScript syntax. you could insert it at the front of JavaScript source code with an assign..... More

Print this item

  How can i judge 1st string position is correct number
Posted by: christing - Oct-29-2019, 04:00 AM - Forum: General Coding Help - Replies (3)

May i ask. what function i can use to make me confirm my string position number one number if i get 1, i will get ok else i will get fail.

below is..... More

Print this item

  Problems w/ controller
Posted by: Zman350x - Oct-29-2019, 02:01 AM - Forum: Game Development - Replies (5)

I'm creating a simple code that allows me to take input from a controller:

[python]import pygame
pygame.init()
pygame.joystick.init()
try:
..... More

Print this item

  Phantom Errors
Posted by: prospero - Oct-29-2019, 12:59 AM - Forum: General Coding Help - Replies (20)

Can anyone see anything wrong with the syntax in this code?

[python]
def CheckClearInv(self, EntityName):
me=Bladex.GetEntity(EntityName)
..... More

Print this item

  Arcade Collision Problem
Posted by: randor - Oct-28-2019, 11:17 PM - Forum: Game Development - No Replies

Hello all,
Ok, I found Python Arcade and wanted to play and see what I could come up with. I have been following some tutorials and videos but most o..... More

Print this item

  Shutil attempts to copy directories that don't exist
Posted by: ConsoleGeek - Oct-28-2019, 10:57 PM - Forum: General Coding Help - Replies (5)

I'm attempting to copy the Documents folder under the Windows userprofile, the shutil.copytree(documents, destination) works partiall..... More

Print this item

  Backtester project in python
Posted by: Megalinux - Oct-28-2019, 10:42 PM - Forum: Code sharing - No Replies

Hello,
I would like to know what you think of the python code present at the following link Lin[url=https://python-forum.io/thread-22081.html]..... More

Print this item

  Run School Bell by Google Calendar
Posted by: darkmx6 - Oct-28-2019, 10:06 PM - Forum: General Coding Help - Replies (1)

Hello all,

I have a Raspberry Pi running a simple python code controlling a relay that rings a bell. It currently works great but I would like to m..... More

Print this item

  multiprocessing: when does fork really happen?
Posted by: Skaperen - Oct-28-2019, 10:03 PM - Forum: News and Discussions - No Replies

i am using the multiprocessing module on a Unix-like platform to run a bunch of worker processes. i am using a system level pipe (os.pipe() is called..... More

Print this item

  Boomerang implementing logic
Posted by: Piethon - Oct-28-2019, 07:09 PM - Forum: Game Development - Replies (24)

Hello everybody.

I am making a game with pygame and till know there are different weapons such as a shurikan and a blowpipe.
But now I wanted to i..... More

Print this item

  How can I create a multiline input in ipython?
Posted by: DataMower - Oct-28-2019, 07:00 PM - Forum: General Coding Help - Replies (3)

Dear all

I am working with the book Python Data Science Handbook by Jake VanderPlas. The author uses ipython in the book.

There are some code ex..... More

Print this item

  Load and format a CSV file
Posted by: fioranosnake - Oct-28-2019, 05:35 PM - Forum: General Coding Help - Replies (11)

HI,

I have a csv file with a single 'column'

Code
ABC
DEF
GHI
JKL
MNO


Is it possible to read and format this into a single stri..... More

Print this item

  Sending 4 bytes Hex data over serial in PyQt
Posted by: gratna - Oct-28-2019, 01:52 PM - Forum: GUI - Replies (4)

Hi,

I would like to send 4 Bytes of Hex data over serial to a microcontroller which are being received from GUI in PyQt5.
For example, consider t..... More

Print this item

  Pip not looking in venv
Posted by: Wavecycle - Oct-28-2019, 01:21 PM - Forum: Bar - Replies (2)

Hi having trouble with pip not looking inside my activated virtual environment. This was working before and I don't know what changed it but would rea..... More

Print this item

  Calculator math.sqrt
Posted by: GFreenD - Oct-28-2019, 12:58 PM - Forum: Homework - Replies (4)

So the main problem is im unsure how to implement math.sqrt into my code.
what i want is that i could take squareroot from answer i get. ive tried ad..... More

Print this item

  Retrieving dictionary keys within with another dictionay
Posted by: bazcurtis - Oct-28-2019, 12:58 PM - Forum: General Coding Help - Replies (8)

I have a list of dictionaries, each dictionary contains keys relating to its health.

I am creating the list via the following as I don't want ever..... More

Print this item

  (New to Python) Shopping List Code
Posted by: Farzan1 - Oct-28-2019, 12:52 PM - Forum: General Coding Help - Replies (3)

How can I stop this code when -1 is typed or at a maximum item count of ten.
At the moment the code seems to be in a infinite loop meaning it keeps o..... More

Print this item

  Python Beginner
Posted by: Python2019 - Oct-28-2019, 12:22 PM - Forum: Homework - Replies (1)

Hi All,

I am new to programming and python. I am currently taking a course and I have a data analysis assignment where I am analysing property pric..... More

Print this item

  Loop through folder of Excel Files and extract single column
Posted by: fioranosnake - Oct-28-2019, 12:18 PM - Forum: General Coding Help - Replies (2)

Hi,

I have a folder contain multiple folders. Each of these subfolders contains an excel file. Is it possible to loop through each subfolder and..... More

Print this item

  Tried a flashcard app written in Python
Posted by: Gribouillis - Oct-28-2019, 10:45 AM - Forum: Bar - No Replies

Looking for a flashcards app to improve my english vocabulary, I came across the Mnemosyne project. It is writt..... More

Print this item

  sum of number's caracters
Posted by: foli - Oct-28-2019, 09:44 AM - Forum: Homework - Replies (7)

hi i have problems solving this homework :
write a program in python that inputs a number and prints the summation of its characters till the sum is ..... More

Print this item

  countdown script not working..plz help what is mistake
Posted by: randyjack - Oct-28-2019, 05:40 AM - Forum: General Coding Help - Replies (1)

countdown script not working..plz help what is mistake



[python]import time

def countdown(t):
while t:
mins, secs = divmod(t, ..... More

Print this item

  Scaling random numbers within specific range
Posted by: schniefen - Oct-28-2019, 01:59 AM - Forum: Homework - Replies (4)

How would one scale some random numbers within a specific range in Python, say [0,pi]? Would simply fmod(random_number/pi) do it?

Print this item

  Sutil.copytree, I'm getting File Exists.
Posted by: Mike Ru - Oct-27-2019, 11:58 PM - Forum: General Coding Help - Replies (1)

I have a folder 'target' with other folders that have folders called 'env'. I am trying to copy all files/directories from 'target' to 'backup_folder'..... More

Print this item

  Help converting MATLAB triple-for loop to Python
Posted by: davlovsky - Oct-27-2019, 11:30 PM - Forum: General Coding Help - Replies (1)

Hello, I have the following code in MATLAB which I am trying to convert to python, using numpy.

[python]M = zeros(100,100);

imageFiles = dir('*...... More

Print this item

  retrieve group of lines
Posted by: knob - Oct-27-2019, 11:04 PM - Forum: General Coding Help - Replies (1)

Good evening !
Would be possible to read a file (around 80k lines) and every time the word XYZ appears,
the code would retrieve this line, and ..... More

Print this item

  setup() from turtle module not working
Posted by: bobfat - Oct-27-2019, 09:13 PM - Forum: General Coding Help - Replies (7)

Hello,

I am trying to make changes in the turtle graphics window size. I tried using the screensize() and the setup() methods, but no success. The ..... More

Print this item

  Odd Syntax Errors
Posted by: ichabod801 - Oct-27-2019, 08:38 PM - Forum: News and Discussions - Replies (6)

So I updated some code I've been using for a while. I went to test the new code and got the following syntax error:

[output]
File "minilog.py", lin..... More

Print this item

  refactoring
Posted by: kerzol81 - Oct-27-2019, 07:48 PM - Forum: Homework - Replies (8)

Hi all, I dont like my implementation of a cat-human age converter, could you please suggest a a more pythonic approach?

[python]
"""
First, ..... More

Print this item

  Super newbie trying to understand certain concepts
Posted by: bbragg311 - Oct-27-2019, 04:43 PM - Forum: General Coding Help - Replies (5)

I am trying to understand the concept of what output this bit of code produces and why...

[python]
1st = [1, 2, 3]
for v in range(len(1st)):
..... More

Print this item

  complete newbie, trying to tweak some code
Posted by: notarobot - Oct-27-2019, 03:57 PM - Forum: General Coding Help - Replies (6)

Hi there,

I am new to python and coding generally. I have some ideas for generative art projects but before tackling that I thought I would start w..... More

Print this item

  TypeError: 'int' object is not callable
Posted by: Boa - Oct-27-2019, 01:11 PM - Forum: General Coding Help - Replies (2)

I get the following error with my player of course not loading. Any help appreciated.

line 32, in <module>
if event.type == pygame.QUIT():
T..... More

Print this item

  Problem installing instaloader
Posted by: ledgreve - Oct-27-2019, 12:29 PM - Forum: General Coding Help - Replies (21)

Hello everyone! I am completely new at Python (and programming in general), so please bear with me: I don't know most of the terminology and so on. I ..... More

Print this item

  BeautifulTable print header multi times
Posted by: evilcode1 - Oct-27-2019, 11:49 AM - Forum: General Coding Help - Replies (11)

hello all im trying to code a tool to check the status for all websites in server IP : code :
[python]# encoding=utf8
import sys
reload(sys)
sys...... More

Print this item

  [split] how to print unicode in python?
Posted by: Frank57 - Oct-27-2019, 10:50 AM - Forum: General Coding Help - Replies (4)

Hi, I have just started learning to program and I am using Python 3. I am learning from a book "Python in Easy Steps" by Mike McGrath all was going we..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Score Better Grade... 27 minutes ago alexcarteraus alexcarteraus General Codin...
  silent deployment Python ... 1 hour ago Bummibaer Bummibaer News and Disc...
  data fetching for indian ... 7 hours ago drakhsin Pedroski55 Web Scraping ...
  PyQt5 - Get a parameter f... Yesterday, 14:18 Ninja2112 deanhystad GUI
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
Most views
  The best Prog... 579316
  Tutorial Requ... 512225
  Web Scraping ... 442207
  Newbie with P... 386312
  New Users Int... 379938
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+ 12109
buran 8196
snippsat 7390
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
alexcarteraus Today
Bummibaer Today
Elevyn Today
kienvtm Today
irukson Today

User Panel Messages

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