4-9: Optimize Your Code
You're working on a "Choose Your Own Adventure" game in BASIC or Python. Over vacation, here are two things you can do on your own:
Optimize your code: make it elegant. Max out on the use of subroutines (GOSUB in Basic) and functions (def in Python). Here's examples and descriptions.
Optimize your user experience (UX): make it user-friendly (so people look forward to playing the next game you write!). This link shows a flowchart and program with lines in red that add user experience. The example is in BASIC but the same ideas apply to Python.