I want a question to continue to be prompted until correct input is given. Prompt the user to input a number between 0 and 100 (inclusive) and keep prompting the user until he does so and then display the number. I am a little lost as to hopw to start it. I have this so far
num = int(raw_input('Enter an integer between 0 and 100 ')) if num < 0 && num > 100; fprintf 'Invalid input. Try again ' else: num >= 0 && num <= 100; disp (num)
Best Answer