Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: pygame why init() & not __init__()?
Post: pygame why init() & not __init__()?

Why does Pygame use init() to initialize all imported modules instead of __init__()? What's the difference between init() and __init__()?
ryfoa6 Game Development 1 1,800 Apr-17-2020, 04:24 AM
    Thread: question about getattr()
Post: RE: question about getattr()

(Apr-07-2020, 06:19 PM)ndc85430 Wrote: Well, think about it: if you didn't have quotes, you'd have getattr(Person, age)Of course, Python would look for a variable called age. What else could it do?...
ryfoa6 General Coding Help 3 2,130 Apr-07-2020, 06:27 PM
    Thread: question about getattr()
Post: question about getattr()

This may sound like an unimportant question but finding patterns in Python is what helps me memorize syntax. Why are the attributes in quotes e.g. 'age'? Am I going to have to remember when to use quo...
ryfoa6 General Coding Help 3 2,130 Apr-07-2020, 06:13 PM
    Thread: Prime number code
Post: RE: Prime number code

Thank you for your help.
ryfoa6 Homework 3 2,859 Mar-21-2020, 12:23 AM
    Thread: Prime number code
Post: Prime number code

The assignment is to write a function that returns the number of prime numbers that exist up to and including a given number. The solution is below but I'm having trouble interpreting it. The part I ...
ryfoa6 Homework 3 2,859 Mar-20-2020, 06:49 AM
    Thread: Trouble interpreting prime number code
Post: Trouble interpreting prime number code

The assignment is to write a function that returns the number of prime numbers that exist up to and including a given number. The solution is below but I'm having trouble interpreting it. The part I d...
ryfoa6 Homework 1 2,221 Mar-20-2020, 05:21 AM

User Panel Messages

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