Topic List | Page List: 1 |
---|---|
Topic | ITT: Learning Python |
1337toothbrush 07/22/21 4:10:20 AM #97: | This is about the point where you'll want to organize your code into functions and classes. Rooms should take a more structured form instead of being handled in one giant linear program. Questionmarktarius posted... while/else? Python has a quirky else construct for while where it'll execute the else if you hit the while condition and it's false. Breaking out of the loop will skip it. When it hits the else, it'll only execute what's in that block once. --- ... Copied to Clipboard! |
Topic List | Page List: 1 |