
Question: The code produces an error. Please understand the error and try to fix it
age = input("What's your age? ")
age_last_year = age - 1
print("Last year you were %s." % age_last_year)
Note:Please useraw_inputinstead of input if you are on Python 2. For Python 3inputis fine.

Hint 1: The input function always returns a string type.

Hint 2: Convert the input to an integer with int.