int · float · str · bool · Casting · Constants · Type Errors
type(variable) returns the data type of a variableinput() always returns a string — always cast before arithmeticage = input("Enter age: ")
next_year = age + 1
print(next_year)input() returns a string, so adding 1 causes a TypeError [1]. Fix: cast to int: age = int(input("Enter age: ")) [1].