In this exercise, you practice with tuples and do more indexing and slicing.
Exercise 1: Expand your "Battle" program (from Python Practice 3) so that the user can chose from a list of heroes. Use a tuple to code up the hero names. Add in another tuple which lists the weapons inventory that is available for the game. Tell the user what is in the inventory and allow the user to choose a weapon from the inventory.
Exercise 2: Write a program that defines two tuples. One contains a bunch of nouns, the other contains a bunch of adjectives. Allow the user to provide you with either an adjective or a noun. If the user provides an adjective, pick a noun at random from the nouns tuple and produce a compound noun. For example, the user inputs "rot", and the program randomly chooses "kopf", the output should be "rotkopf" (German is better at compounding, so it is better to do this with German if you know German...). If the user provides a noun, then pick an adjective at random from the adjectives tuple and produce a compound noun.
Exercise 3: Take Dawson's Word Jumble Program and modify it in the following way.
Please hand in the programs for the Exercises to aikaterini-lida at uni konstanz by Friday the 28th of November by 11 am.