Unit 8
Starter Code
print("Unit 8")
myName = "" # add your name
print("Name: " + myName)
def main():
done = False
print("Welcome to the Main Function")
print("Menu")
print("E1 - Example 1")
print("E2 - Example 2")
print("E3 - Example 3")
print("E4 - Example 4")
print("E5 - Example 5")
print("E6 - Example 6")
print("E7 - Example 7")
while not done:
choice = input("Choice: ")
match choice:
# case for Example 1
# case for Example 2
# case for Example 3
# case for Example 4
# case for Example 5
# case for Example 6
# case for Example 7
# case for Quit
case "Q":
print("Quitting!")
done = True
# default case
case _:
print("Invalid, try again!")
# define Example 1 Function
# define Example 2 Function
# define Example 3 Function
# define Example 4 Function
# define Example 5 Function
# define Example 6 Function
# define Example 7 Function
# call to main function, do not delete!
main()
Last updated