Python to ask for input on different occasion.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python to ask for input on different occasion..

Please what can I do to make the program as for another input after the first one has been inputed. print("menu") print("Enter records") print("see statistics") print("List all records") print("Quit") print("..........................") x = int(input()) if x == 1: print("Enter records") elif x ==2: print("See statistics") elif x ==3: print("List all records") elif x == 4: print("Quit")..... ...... Now if the input is 1 it will print enter records... E.g Enter records...has been printed.. Now I wasn't it to ask again do input..so when the input is chosen it will print out the selected number...i wanna know how to write that loop that will ask for input on different occasion so as to move on and on in the program either forward or backward or quit the program... An e.g could help alot

15th Dec 2020, 11:35 PM
Solomon David
Solomon David - avatar
1 Answer
+ 1
Or You can just do it like this. """ CHOOSE 1. Menu 2. Enter Records 3. See Statistics 4. List all Records 5. Quit """ #Try to A Different IDE for better/multiple Inputs""
16th Dec 2020, 12:47 AM
noteve
noteve - avatar