So i'm new to python and i was wondering how to repeat code after an exception.
Like for and example:
try:
number = int(input('Enter a number: ')
print(number)
except ValueError:
print('You must enter a number')
so insted of ending the code I would want to make the Enter a number:
input appear again after without repeating the same code again.