0

i want to be able to re prompt users for text after the program gives a ValueError. i want the user to only be able to input integers what would i put in the except section to redirect me to the input?

try:
    int_value = int(input('enter your number: ')
except ValueError:
   #what would i put here?
martineau
  • 112,593
  • 23
  • 157
  • 280

0 Answers0