1

Lets say I do this: letter = input('Please enter a letter: ')

And I want to immediately stop the input after only one letter that the player typed. How do I do it? Thanks!!

glibdud
  • 7,550
  • 4
  • 27
  • 37
Roy
  • 31
  • 3
  • Use the `termios` module to change to raw mode, then use `sys.stdin.read` rather than `input`. – o11c Sep 24 '19 at 18:42

0 Answers0