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,265
» Latest member: Rerus3700
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 44 online users.
» 1 Member(s) | 39 Guest(s)
Bing, Google, Mojeek, AOL, deanhystad

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:07 PM
» Replies: 2
» Views: 105
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 68
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 65
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 319
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 46
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 80
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 281
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 149
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 245
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 433

 
  Python to build website
Posted by: Methew324 - Dec-15-2020, 05:27 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi, I am currently using the WordPress for my business websites. I am looking for built my own website backend controlling interface using python. Yes..... More

Print this item

  Need help
Posted by: kamui123 - Dec-15-2020, 02:15 AM - Forum: General Coding Help - Replies (3)

Hi all, is there a way to make this code transmit 1 byte without affecting the output?
I am grateful and appreciative anyone could help out.

[pyt..... More

Print this item

  find repeating cycle in iterable results
Posted by: Skaperen - Dec-15-2020, 02:09 AM - Forum: News and Discussions - No Replies

i have an iterable object (not just an iterator). it has a repeating cycle in it, or not. it comes to an end if not. it repeats forev..... More

Print this item

  Creating more than one excel File at once
Posted by: malvarez1976 - Dec-15-2020, 02:04 AM - Forum: Data Science - No Replies

HI. I have the following list:

list = ["Customer2", "Customer2", "Customer3"]

I need to create a new excel file with the name of each element in..... More

Print this item

  Is there a way to move text created by turtle.write()?
Posted by: derekered - Dec-14-2020, 11:07 PM - Forum: General Coding Help - Replies (7)

I'm working on a school project right now, so I'm limited with the modules I can use (turtle, random, time). The basic concept is a typing game, model..... More

Print this item

  How to create new line '/n' at each delimiter in a string?
Posted by: MikeAW2010 - Dec-14-2020, 10:56 PM - Forum: General Coding Help - Replies (3)

I want python to automatically import a new line, or /n code at each delimiter within a string. Lets say I want Python to make a new line at every 'pe..... More

Print this item

  What is this formatting called?
Posted by: Mark17 - Dec-14-2020, 08:18 PM - Forum: General Coding Help - Replies (2)

Here's some brief code from an online Python exercise:

[code]
exam_st_date = (11,12,2014)
print( "The examination will start from : %i / %i / %i"..... More

Print this item

  Defining Classes
Posted by: javesike1262 - Dec-14-2020, 07:46 PM - Forum: Homework - Replies (11)

Hi, I have been doing well on Python coding so far but now Im stuck on this assignment.

'''This class represents regular polygons. The initializati..... More

Print this item

  Level curves don't match after rotation
Posted by: schniefen - Dec-14-2020, 06:01 PM - Forum: General Coding Help - Replies (1)

Consider the general 2D Gaussian function, centered at (0.5,0.5),

A*exp(-a*(-0.5 + x)**2-b*(-0.5 + x)*(-0.5 + y)-c*(-0.5 + y)**2)
..... More

Print this item

  Help with pygame tutorial
Posted by: djwilson0495 - Dec-14-2020, 05:47 PM - Forum: Game Development - Replies (10)

I'm trying to make a pygame window where I can enter and edit text. I'm following a tutorial as a base for my code but I'm getting an the following er..... More

Print this item

  Unpacking wheel files
Posted by: DavidTheGrockle - Dec-14-2020, 04:07 PM - Forum: General Coding Help - Replies (3)

I am trying to open a .whl file.

I went to https://pypi.org/project/tidegravity which takes you into GitHub.

I then downloaded tidegravity-0.40b..... More

Print this item

  Why does lambda throw 'name value_o is not defined' error?
Posted by: karabakh - Dec-14-2020, 03:21 PM - Forum: General Coding Help - Replies (3)

Note that this is happening in codewars and my IDE is not showing any errors.

[python]
def decrypt(text,n):
i=0
test=""
if n<0:
..... More

Print this item

  bird jump in flappy bird games
Posted by: syafiq14 - Dec-14-2020, 12:41 PM - Forum: Game Development - Replies (1)

I am making a game like flappy bird from scratch but I am confused about how to fly / jump that birds do in the game Flappy Bird .. How to do it?

[..... More

Print this item

Question Why do these codes give different answers?
Posted by: pooyan89 - Dec-14-2020, 09:49 AM - Forum: Homework - Replies (5)

My goal is to write a function that takes a letter as an argument, it loops through its words and gives me False if it contains 'e' otherwise it is Tr..... More

Print this item

  cant make a door automatically close a few seconds after i open it in pygame
Posted by: cooImanreebro - Dec-14-2020, 09:05 AM - Forum: Game Development - Replies (2)

whenever i make a wait function after the door is opened it just freezes the game instead of just freezing the door.
[python] def door_open(self):..... More

Print this item

  Output prints Account.id at the end?
Posted by: LastStopDEVS - Dec-14-2020, 03:56 AM - Forum: General Coding Help - Replies (5)

First off, I appreciate anyone who takes a look at this code. I did my best to read the rules here on the forums and I am trying my best to follow the..... More

Print this item

  Winning/Losing Message Error in Text based Game
Posted by: kdr87 - Dec-13-2020, 11:35 PM - Forum: General Coding Help - Replies (2)

[python]initialize game loop
while True:
if current_room['name'] == 'Chamber of Secrets':
if inventory == ['heart', 'nose', 'empathy', 'ey..... More

Print this item

  how to save an image on python
Posted by: perrieS - Dec-13-2020, 10:36 PM - Forum: Homework - Replies (1)

Hi!
i have an assignment and part of it includes saving an image as an array into an array and i have no idea on how to do so.
any help will do

Print this item

  Why does 'if' block run twice
Posted by: laanan - Dec-13-2020, 10:36 PM - Forum: General Coding Help - Replies (2)

Hello,

I am trying to understand why the if block in the code below is running twice. When the block based on pattern1 gets triggered, it sends the..... More

Print this item

  Moving to Functional
Posted by: swisscheese - Dec-13-2020, 09:30 PM - Forum: Code Review - Replies (11)

Can anyone help explain how to make this snippet follow a more functional style? I was able to functionalize other portions of the code but having tro..... More

Print this item

  ReferenceError: weakly-referenced object no longer exists
Posted by: MrBitPythoner - Dec-13-2020, 07:42 PM - Forum: General Coding Help - Replies (17)

Hi there. I have been working on a library managment system. I am using MySQL as DB and Tkinter as GUI.

This error:

[error]File "C:\Program File..... More

Print this item

  Picture changing triggered by GPIO
Posted by: q_nerk - Dec-13-2020, 07:18 PM - Forum: General Coding Help - Replies (2)

Hello,
I'm just started learning Python. Program will work under RPi.
General functionality is: when gpio input is grounded picture red picture sho..... More

Print this item

  Not able to make a specific thing pause in pygame
Posted by: cooImanreebro - Dec-13-2020, 07:10 PM - Forum: General Coding Help - Replies (4)

when i use time.sleep() or pygame.time.wait() it always freezes the whole game instead of one specific thing.

lets say i want to make a door open a..... More

Print this item

  Python Closures and Scope
Posted by: muzikman - Dec-13-2020, 05:32 PM - Forum: General Coding Help - Replies (2)

I don't like how Python handles scope. Inner functions cannot access the outer function's variables when in any other language, they can. Here is an e..... More

Print this item

  Properly import from sub/parent folders?
Posted by: oclmedyb - Dec-13-2020, 05:23 PM - Forum: General Coding Help - Replies (2)

Hello,

I want to organize my project in different folders.
Currently everything is in one folder but this is getting messy really fast.

This is..... More

Print this item

  PyQt and Pylupdate5
Posted by: Koi - Dec-13-2020, 04:49 PM - Forum: GUI - No Replies

Hello.
I am trying to create a translation file:
pylupdate5.py3 untitled.ui -ts zh_FN.ts
I get an error:
[error]
Traceback (most..... More

Print this item

  Python chess game to detect winner
Posted by: ddddd - Dec-13-2020, 04:42 PM - Forum: General Coding Help - Replies (1)

[python]def destroy_piece(self, piece):
""" Removes piece from the canvans and click-handler
automatily called by move_piece
..... More

Print this item

  Getting button pressed number
Posted by: Moris526 - Dec-13-2020, 04:27 PM - Forum: General Coding Help - Replies (4)

Hi all.

Im using Adafruit's Neotrellis led/button board with Python code on Raspberry pi

I want to send, via serial, the button pressed to Pc.
..... More

Print this item

  PyCharm Script Execution Time?
Posted by: muzikman - Dec-13-2020, 04:16 PM - Forum: General Coding Help - Replies (3)

Greetings,

I wanted to know if there is a way to time the execution of a script run in PyCharm? Or, are there any intrinsic in the language to find..... More

Print this item

  Scrapping Sport score
Posted by: laplacea - Dec-13-2020, 02:05 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi the forum,

I am very new to Python. I am trying to scrape pages like this : https://www.flashscore.fr/hockey/france/...-2018/resu..... More

Print this item

  [BeautifulSoup] ; comparing attributs with given value
Posted by: arbiel - Dec-13-2020, 11:19 AM - Forum: Web Scraping & Web Development - Replies (4)

Hi

I'm creating an html file to record the first and last entry of each page of my greek dictionnary. To find the page number of a given word, for ..... More

Print this item

  Analyzing yearly expenses (CSV file) from debit card
Posted by: Python_User - Dec-13-2020, 11:18 AM - Forum: Data Science - Replies (4)

Hello,

I am quite new with programming in Python and now I have started my (kind of) 'first' project in Python. I want to analyse my yearly expense..... More

Print this item

  How can this for loop work without : ?
Posted by: Pedroski55 - Dec-13-2020, 12:57 AM - Forum: General Coding Help - Replies (1)

I am working my way through Reuven Lerner's book Python Workout (great book!).

On page 86 is a program to find the longest words.

I have 10 boo..... More

Print this item

  Code not reading http link from .txt file (Beginner level)
Posted by: plarrip - Dec-13-2020, 12:56 AM - Forum: General Coding Help - Replies (3)

Hello fellow users,

I have a doubt regarding a code I wrote which reads .txt files. This was a practice exercise I found on the net which prompts t..... More

Print this item

  beginner help in python
Posted by: aghapouria - Dec-12-2020, 11:16 PM - Forum: General Coding Help - Replies (7)

Hi

I am trying to learn python and I am working with some problems in the book, I am trying to construct a function that reads the lines of a strin..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... Yesterday, 16:07 nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579016
  Tutorial Requ... 510848
  Web Scraping ... 442028
  Newbie with P... 386066
  New Users Int... 377447
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Rerus3700 Today
pas88 Today
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday

User Panel Messages

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