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
The loop keeps running even though I have pressed the letter 'q'.
--
https://mail.python.org/mailman/listinfo/python-list
