@ReubenBakas/

Iterationm work

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# When this progra

Running = True
while Running:
 # When this program starts it will show ~~~~~~~~~~~~~~~~~ and will adk you to enter the following values 1 2 and 3 these numbers each do a different function which is stated Enter '1' to login Enter '2' to Register:Enter '3' to Exit: and when you exit it will print Sorry you are leaving. Have a nice day! 
 
 print("~~~~~~~~~~~~~~~~~")
 print("Please select one of the following options:")
 print()
 print("Enter '1' to login:")
 print("Enter '2' to Register:")
 print("Enter '3' to Exit:")
 print()
 selection = input()
 if selection == "3":
 #This is what stops it looping and stops the game
   Running = False
   print("Sorry you are leaving. Have a nice day!")
 #This is if you selected 1 it will say on the screen 1 selected to confirm
 elif selection == "1":
     
   print("1 selected")
 #This is if you selected 2 it will say on the screen 2 selected to confirm
 elif selection == "2":
  
   print("2 selected")
   #However if you do not answer 12 or 3 it will say ERROR!!!! You did not enter a correct option. Please try again. and the program will loop back to the beginnig and all data will be cleared. 
 else:
   print("ERROR!!!!")
   print("You did not enter a correct option.")
   print("Please try again.")