Road to Cybersecurity Professional
&
Game Dev after Dark

100 Days of Code - Day Three

Day 3 of 100 Days of Code: Choose Your Own Adventure in Python

Today’s challenge in my 100 Days of Code bootcamp was an exciting “Choose Your Own Adventure” game. This interactive project required user input and decision-making, reinforcing key Python concepts.

Learning Conditional Logic

I explored:

  • If/Else Statements: Direct program flow based on conditions.
  • Elif Statements: Handle multiple conditions sequentially.
  • Nesting: Layer conditions for complex decision-making.
  • Logical Operators: Combine multiple conditions effectively.

Building the Game

Using a provided flowchart, I structured a story where user choices determined the outcome. A key challenge was handling variations in user input, ensuring the program worked smoothly regardless of capitalization.

Takeaways

This project deepened my understanding of conditional logic and interactive programming. If you’re learning Python, try building your own adventure game—it’s a fun way to apply these concepts!

On to Day 4’s challenge!