Possible Duplicate:
Python read a single character from the user
I would like to create a line of code that accepts only a single character as it's input. For example...
var = my_input("Type a letter: ")
print var
on running, the moment you pressed a character-producing key, that character would be printed. How would I, then, create the function my_input
?