Question: Write Python code that repeatedly requests input to determine Godzilla's next move. It should display the menu Enter Godzilla's next move: 1 - Crush Tokyo

Write Python code that repeatedly requests input to determine Godzilla's next
move. It should display the menu
Enter Godzilla's next move:
1- Crush Tokyo City Hall
2- Crush Diet Building
3- Crush Tokyo Tower
4- Fight Mothra
5- Return to the sea
If the user enters numbers 1-4, print the corresponding action ("Godzilla crushes
Tokyo Tower. Ahhh!"). If the user enters 5, exit. If the user enters anything else,
print a chastising message. ("That's not allowed.") Use exception handling, and
write your code in a way that makes it easy to add new menu items. Whether or
not the user gave valid input, print a blank line before printing the menu again.
 Write Python code that repeatedly requests input to determine Godzilla's next

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!