0

Getting an error message when I enter this

X = int(2019)-int(input('enter birth year:') print('your age is %d years old', % X)

25th Aug 2019, 8:55 AM
Onimisi
Onimisi - avatar
5 Answers
+ 4
There should be no comma between print("your age is %d years old"%x)
25th Aug 2019, 9:00 AM
Mirielle
Mirielle - avatar
+ 3
Sonny Walker what do you mean still getting the same result? https://code.sololearn.com/cDHHhcjvRFpH/?ref=app
25th Aug 2019, 9:11 AM
Mirielle
Mirielle - avatar
+ 1
Its working fine. I just checked and i noticed i forgot to add an ending paranthesis in the first line
25th Aug 2019, 9:19 AM
Onimisi
Onimisi - avatar
0
Still getting the same result
25th Aug 2019, 9:06 AM
Onimisi
Onimisi - avatar
0
D'Lite ok i will check
25th Aug 2019, 9:08 AM
Onimisi
Onimisi - avatar