Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLidia Matzek
5,481 Pointswhy won't the code run in my workspace?
Hi, i tried to run the teacher's code in my workspace. Can someone tell me why this happend:
treehouse:~/workspace$ python age_calc.py
Hi there stranger. What's your name? Lidia
What year were you born?
Traceback (most recent call last):
File "age_calc.py", line 7, in <module>
birth_year = int(birth_year)
TypeError: int() argument must be a string, a bytes-like object
or a number, not 'NoneType'
treehouse:~/workspace$ ^C
1 Answer
Mikhail Boldyrev
1,152 PointsDid you by any chance forgot While True thingy? I'm also just learning, same as you, but I did not receive this error and if I read your error message correctly there is some kind of problem with the Truthiness of your input?
I can be wrong.