NEA Support

Below is a series of different programs that have pseudocode and flowcharts completed for them. Use them to try and relate your algorithm designs to your code.

Example 4 - Menu Selection - Iteration (While Loop)

This program is designed to show how you might create a menu.



Python Code

print("What would you like to do?")
print("1. Play Game")
print("2. Instructions")
print("3. Quit")
valid = False
while valid==False:
	option = int(input("Enter which option you want: "))
	if option == 1 or option == 2 or option == 3:
print("Let's go")