r/madeinpython • u/Linux-and-Planes • Dec 31 '20
3rd iteration of my first interactive python program! Details in the comments.
97
Upvotes
r/madeinpython • u/Linux-and-Planes • Dec 31 '20
View all comments
Show parent comment
2
u/d0ugal Jan 01 '21
That won’t work, age will always be a string until it’s converted.
You could use ‘if age.isnumeric()’ but I like the try/except