This is what I want, but for an integer. I am not allowed to use break or continue to exit loops.
# basically I need this, but with an int(input('please enter a number')) ask = input('Would you like to play Steal or Deal [y|n]? ') while ask not in ('y', 'n'): print ("Please enter either 'y' or 'n'") print('') ask = input('Would you like to play Steal or Deal [y|n]? ')