xxxxxxxxxx
use try: , except:
try to "try the code that might give errors"
except to "except errors" then write the type of error beside it.
Example:
*imagine a guy put a number in a variable (number)*
number = input("num")
try:
number += 1
except TypeError:
print("Sorry but your answer is a letter")