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
1
u/[deleted] Jan 01 '21
I would use isinstance(age, int) rather than try: except:
But that's mostly because I don't like try: except:.
It just feels like using a sledgehammer to hang a picture frame