One idea at a time, in the console: text, lists, dictionaries and errors, then a text adventure built from all of them, saved to a file.
Tidy, compare and cut up what people type.
Tidy typed text with strip() and lower(), cut it into words with split(), and pick out a word by its place.
Keep many things in a list, and look things up by name in a dictionary.
Add to a list with append(), take out with remove(), check with in, and list it with join().
Store rooms and exits in dictionaries, look things up by name, put a dictionary inside a dictionary, and count words.
Catch mistakes with try and except, build a text adventure in milestones, then save it to a file.
Catch an error with try and except, so a typing mistake gets a helpful reply and the program asks again.
Put the parser, the bag and the map together into a text adventure, in three milestones, then make it your own.
Write the game to a file with json, read it back next time, and catch the error when there is no file yet.
Progress is saved in this browser only. Nothing is sent anywhere.
For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)