Here is a little script that I put together based on the idea behind the old “chose your own adventure” books that I loved reading as a kid. In this case, I just wanted to test myself to make sure I could correctly transfer the logic of a storyline like this into a Python script.
Here’s an overview of the code:

And if you would like to try it out yourself, you can download the .py file here: