Monday, March 25, 2013

Read keyboard input in Python

char_in = 'a'
print(char_in)
while char_in not in ['Q', 'q']:
    print('Enter Q/q to quit:')
    char_in = input()
    print(char_in)

Read keyboard input in Python
Read keyboard input in Python