Thursday 5 May 2016

Python Functions Assignment #1

 Create a program that asks you to move between 3 rooms.The rooms are all in a row as shown in the diagram below:
The program will ask the user to enter a number to choose to move to another room.
Your output should look exactly like the following:

Any time the user enters an option that is not valid, it will say "Invalid option" and ask the question again.

In your program, you must END any loops that are not used.  This means you cannot activate a function from a loop without ending it (otherwise that loop will go on forever and use up resources).

This can be done in 32 lines including a line to label #main.

No comments:

Post a Comment