I need your help

Question:
Why can’t I execute the code on my phone?

Current behavior:

Desired behavior

Repl link:

int_age=input("How old are you?\n")
print(f"You were born in the year {2023-int_age}")

you need to add int( ) around the input() so int_age can be stored as an integer.

6 Likes
int_age = input("How old are you?\n")
print(f"You were born in the year {2023 - int(int_age)}")

fixed code

2 Likes

Thanks man

في الخميس، ٢ نوفمبر ٢٠٢٣, ١٠:٢٥ م Sky via Replit Ask <notifications@replitteams.discoursemail.com> كتب: