Help me fix the ‘invalid literal for in() base 10 !
TuanMinhMinh (1)

print('You will be'+str(int(myAge)+1)+'in a year.')

i wrote this! anyone knows the error please help me :( !

You are viewing a single comment. View All
Answered by Wumi4 (540) [earned 5 cycles]
View Answer
Wumi4 (540)

Wdym? I run the code and it works.

>>> myAge = 10
>>> print('You will be'+str(int(myAge)+1)+'in a year.')
You will be11in a year.
Wumi4 (540)

@TuanMinhMinh What error did you have?

TuanMinhMinh (1)

@Wumi4 it didn’t worked :( i test it again but it still said doesn’t work.