Ask coding questions

← Back to all posts
i am confused
GOATPayton (0)

how do you get your code on python to to show the sum of age and 10 because i am doing an age calculator but i don't know what code(s) will show it

Answered by Coder100 (17020) [earned 5 cycles]
View Answer
Coder100 (17020)
age = int(input('age: '))
print('Your age in 10 years is', age + 10)

don't forget the int() to convert into a number.

DavidSafro (19)

if you posted your cod it would be easier to diagnose your problem