TRY THESE CHALLENGES
C1: Remove the speech mark at the end of the string and run the code. Add a new, use the \n\ feature to set a new line
C2: Add another option called "Option 9 - Quit"
C3: Add a line that will use the 'menu' string to prompt the user to enter an option number and then store this in a variable. (You can delete the 'print' line)
C4: Add an if/elif block that will print (You chose option 1) or similar based on the choice the user enters.
C5: Now you know it works, make more options which deliver a compliment or insult.
C6: Put the whole lot inside an infinite loop, don't forget to indent everything, while True:
C7: Use the command 'break' if option 9 is selected and the program ends.
C1: Remove the speech mark at the end of the string and run the code. Add a new, use the \n\ feature to set a new line
C2: Add another option called "Option 9 - Quit"
C3: Add a line that will use the 'menu' string to prompt the user to enter an option number and then store this in a variable. (You can delete the 'print' line)
C4: Add an if/elif block that will print (You chose option 1) or similar based on the choice the user enters.
C5: Now you know it works, make more options which deliver a compliment or insult.
C6: Put the whole lot inside an infinite loop, don't forget to indent everything, while True:
C7: Use the command 'break' if option 9 is selected and the program ends.