It is very important to make sure of you indentation and declaration in python. Adopting the habit (or tool using a like Prettier) in VS code or any build in formatter will help a lot.
Solution:
def life_in_weeks():
users_age = input("What is your age? ")
print(users_age)
If this is not the problem, please share more information.