91854/how-to-take-user-input-python3
The program should first enter into the main menu, giving the user a choice of entering the number "1", "2", or "3". Entering the character "q" should exit the program.
How to write such types of things? Help me
Use a while True: loop, to take input forever, and then use the break keyword (or exit function) to stop the loop
num = input("enter number") print(num) READ MORE
raw_input is not supported anymore in python3. ...READ MORE
Here am talking about my example you ...READ MORE
Brackets are required to print the output. >>> ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
To read user input you can try the cmd module for ...READ MORE
Hi @There, As the path is fixed, use ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.