Re: Key Press Not Working

2017-11-02 Thread MRAB
On 2017-11-03 02:40, brandon wallace wrote: I am trying to catch a key press but it is not working. How can I fix this code? There is no error message so there is no error message to do a search on. I am using Python3.5 64-bit inside the terminal. while True: key = input("Enter a lette

Key Press Not Working

2017-11-02 Thread brandon wallace
  I am trying to catch a key press but it is not working. How can I fix this code? There is no error message so there is no error message to do a search on. I am using Python3.5 64-bit inside the terminal. while True: key = input("Enter a letter: ") if key == ord('q'): break