def age_calculator():
birth_year = int(input('What is your year of birth: '))
current_year = int(input('What is the current year: '))
age = current_year - birth_year
return f'You are {age} years old'
print(age_calculator())
Algum problema de convenção, o input estar dentro da função e não ter os argumentos de entrada?