Update: I've added the parentheses and byte however the code still doesn't change the output.
I'm trying to write a python program that sees what the user is typing using getch() and then changes it (and prints the changed version) - so if the user types '1', 'one' would be printed for example.
Here's my code:
import msvcrt as m
character = m.getch
while True:
if m.getch == b'1':
print 'one'
break
This just prints what the user types.
Please help me get the program to change the variable correctly.