LogFAQs > #956341438

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, Database 8 ( 02.18.2021-09-28-2021 ), DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicITT: 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