0

is there a way I can get a response to auto enter after a certain amount of characters has been pressed so the user doesn't need to press enter. I wanted to do something like this:

ask = input("enter 1 to do this or 2 to do that") #some type of function that enters after 1 character

if ask == "1": print("text")

if ask == "2" print("text")

  • A quick search and google yielded an answer that someone has answered this before! Here's the link: https://stackoverflow.com/questions/3523174/raw-input-without-pressing-enter – Lune Miralis Sep 29 '22 at 12:25

0 Answers0