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