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)