Code for a text adventure tutorial in Python