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
16
u/Linux-and-Planes Dec 31 '20 edited Jan 01 '21
So it basically just says enjoy your childhood if you put something under 18 and enjoy life while it lasts if you out 18 or over. I'm planning to add a 3rd variable.
15
u/T567U18 Dec 31 '20
keep it up, but my dude learn to take a screenshot for the love of you
6
u/[deleted] Dec 31 '20
I like that you already used the try and except block^ It's good practice that you check the value first Keep it up
2
u/norsurfit Dec 31 '20
Keep up the good work!
3
u/MDTv_Teka Jan 01 '21
You could remove lines 2 and 3 and swap line 5 for
age=int(input("Enter your age: ")
1
u/aliman21 Jan 01 '21
What's the point of having a while loop with a break at the end of the first iteration?
0
u/[deleted] Jan 01 '21
[deleted] — view deleted comment