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")