xxxxxxxxxx
# ask the user to enter a number
user_number = input('Please enter a number: ')
# Try to convert it in to an integer
try:
num = int(user_number)
# if it cannot be converted to an int, run the except
except:
print('You did not enter a number')
quit() # quit the program from here
print('You entered number', num)