for loop - range (three arguments)
Objective
Introductory Problem
done = False
while not done:
print("Menu")
print("I - Introductory Problem")
print("Q - Quit")
choice = input("Choice: ")
if choice == "I":
print("Introductory Problem")
for x in range(2,11):
print(x)
elif choice == "Q":
print("Exiting Game!")
done = Truefor loop


Examples
Example 1
Example 2
Example 3
Last updated
Was this helpful?