Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: question about my pygame code for space shooter
Post: game window immediately closesby itself and error ...

Hi, I am not sure why when I go and run my code I am getting these two errors: Terminal Output: "File "c:\Users\Timothy Han\Documents\Python Projects\Pygame\PygameForBeginners-main\Assets\Two_Player_S...
Than999 Game Development 4 2,506 Feb-07-2022, 01:13 AM
    Thread: question about my pygame code for space shooter
Post: question about my pygame code for space shooter

Hi, I am not sure why when I go and run my code I am getting these two errors: Terminal Output: "File "c:\Users\Timothy Han\Documents\Python Projects\Pygame\PygameForBeginners-main\Assets\Two_Player_...
Than999 Game Development 4 2,506 Feb-07-2022, 12:41 AM
    Thread: question about my Pygame code
Post: RE: question about my Pygame code

(Feb-06-2022, 06:41 PM)BashBedlam Wrote: for event in pygame.event.get () :Instead of... for event in pygame.get () : Thanks!
Than999 Game Development 2 1,679 Feb-06-2022, 10:03 PM
    Thread: question about my Pygame code
Post: question about my Pygame code

Hi everyone, I am trying to learn about the Pygame framework by following this Medium article. However, my code so far only shows the game window screen for a split second and then it closes out. I ...
Than999 Game Development 2 1,679 Feb-06-2022, 04:23 PM
    Thread: port scanner
Post: port scanner

Hi, I am learning about cybersecurity and networking by following this Youtube video. For this project I am making a simple port scanner. However, when I went to run my Python script using an IP addre...
Than999 General Coding Help 0 1,191 Feb-01-2022, 12:24 PM
    Thread: question regarding my Python port scanner script
Post: question regarding my Python port scanner script

Hi, I am learning about cybersecurity and networking by following this Youtube video. For this project I am making a simple port scanner. However, when I went to run my Python script using an IP add...
Than999 Networking 0 3,403 Jan-30-2022, 04:31 PM
    Thread: Question about NameError
Post: RE: Question about NameError

(Dec-10-2021, 03:53 PM)Larz60+ Wrote: line 27 student needs to be titlecase. Ok, great! Thanks!
Than999 General Coding Help 2 1,752 Dec-10-2021, 03:54 PM
    Thread: Question about NameError
Post: Question about NameError

Hi, I am learning Python object oriented programming through this Youtube video. I am following along with his code. However, I am getting a "NameError" where I cannot pin-point where my error is in...
Than999 General Coding Help 2 1,752 Dec-10-2021, 03:08 PM
    Thread: Problem with my pong game code
Post: RE: Problem with my pong game code

(Aug-28-2021, 04:41 PM)ndc85430 Wrote: Line 46: drop the parens on paddle_a_up. Why? Because having the parens means calling the function and then the return value is passed to onkeypress, which isn...
Than999 General Coding Help 8 3,834 Sep-09-2021, 11:34 AM
    Thread: Problem with my pong code
Post: RE: Problem with my pong code

Okay, thank you so much!
Than999 Game Development 3 3,450 Sep-09-2021, 11:33 AM
    Thread: Problem with my pong code
Post: Problem with my pong code

Hi, I am following a tutorial on Youtube on how to make this pong game. I follow the tutorial code-for-code, and I am getting a different result than the instructor on Youtube, but my code and parame...
Than999 Game Development 3 3,450 Sep-08-2021, 01:15 AM
    Thread: Problem with my pong game code
Post: Problem with my pong game code

Hi, I am following a tutorial online: freecodecamp.org on Youtube. I am learning how to program a simple pong game in Python. However, when I go and execute my code the "left paddle" associated with...
Than999 General Coding Help 8 3,834 Aug-28-2021, 04:12 PM
    Thread: rounding and floats
Post: rounding and floats

Hi, I don't understand why 10/3 the answer is 3 and 10.0/3.0 is 3.3333? Can anyone explain this to me? Thanks!
Than999 General Coding Help 2 3,080 Oct-26-2020, 09:08 PM
    Thread: a better way of writing code
Post: a better way of writing code

Hi is there a better way of writing this code instead of writing the repetitive multiple if statements? I'm trying to find a better way of writing this code. Basically I want to count up the the tota...
Than999 General Coding Help 6 3,344 Jun-12-2020, 06:22 PM
    Thread: question about for loop
Post: question about for loop

How come in the output of this code there is an extra 4? Shouldn't it only display a single 4 value as the last value in this output? num = 10 for num in range(5): print(num) print(num)
Than999 General Coding Help 5 2,463 Jun-08-2020, 01:59 AM
    Thread: Question about my code
Post: Question about my code

Hi, I am struggling to understand the solution to my homework problem and why my code or logic is incorrect compare to the solution of this question. The assignment states "write a for loop that sums...
Than999 Homework 5 2,604 Jun-07-2020, 11:42 PM
    Thread: Print 'X' a number of times
Post: Print 'X' a number of times

Hi What is wrong with my code? I'm trying to print the a number of 'X' strings based on my input value (integer). However, when I try to run it in my Python IDE, there is no output for some reason, n...
Than999 General Coding Help 1 2,636 Jan-18-2020, 06:22 PM
    Thread: Determining the Percentage of Voter Population
Post: RE: Determining the Percentage of Voter Population

Hi I am still not clear what you mean by "the County class gives the definition how to create one county object"? Can you elaborate? Because the assignment starts off with this code: # implement Cou...
Than999 Homework 5 3,910 Dec-28-2019, 06:32 PM
    Thread: Determining the Percentage of Voter Population
Post: Determining the Percentage of Voter Population

Hi, I am struggling with this assignment. I am asked to determine which county has the highest voter percentage (in decimal form only, i.e. population in the county/voters in the county) in each of th...
Than999 Homework 5 3,910 Dec-28-2019, 12:32 AM
    Thread: Frustrated with Assignment. S.O.S! HELP!
Post: return in my function

Hi, I just want to know how to set my "return" in my function correctly in my code. What do I set my return to if I want to show whether each rule is True or False, based on the test of the four rules...
Than999 Homework 7 3,504 Nov-17-2019, 08:32 PM

User Panel Messages

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