Use try-except
blocks to handle likely errors.
age = input("How old are you? ")
try:
age = int(age)
print(f" You are {age} years old.")
except ValueError:
print(" I wanted your age!!!\n Please enter a number next time.")
How old are you? eric I wanted your age!!! Please enter a number next time.
from random import choice
mountains = ['k2', 'kilimanjaro', 'everest', 'aconcagua']
choice(mountains)
'aconcagua'