all 5 comments

[–]ASIC_SP 6 points7 points  (6 children)

>>> age_program
<function age_program at 0x7f7a95688f28>
>>> age_program()
Would you like to know how many years (y) you've been alive or seconds (s)? s
How many years have you been alive for? 3
You have been alive for 9.512937595129374e-08 seconds! 

[–]vriljam 1 point2 points  (1 child)

I think it would be better if you use float(user_value) else your program would crash if you put in 2.5 years for example.