Python Print Error

Cai Gengyang gengyangcai at gmail.com
Tue Jul 26 23:45:40 EDT 2016


How to debug this error message ?

print('You will be ' + str(int(myAge) + 1) + ' in a year.')
Traceback (most recent call last):
  File "<pyshell#53>", line 1, in <module>
    print('You will be ' + str(int(myAge) + 1) + ' in a year.')
ValueError: invalid literal for int() with base 10: ''



More information about the Python-list mailing list