I want to take one letter at a time in python. can we take one letter at a time using "input()" in python3
Example: I want to input only one letter such as a. b, c, .....etc. It should not accept more than one letter word such as ab, as, asa ... etc. is there any such function in python 3?
Use the getch
module.
import getch
# ...
char = getch.getch() # User input, but not displayed on the screen
# or
char = getch.getche() # also displayed on the screen
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With