Is it finding correct age ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
7th Aug 2020, 3:58 PM
S.G.INGALE
S.G.INGALE - avatar
6 Answers
+ 3
I just tested with the following input sets: 0 0 0 and your program tells me that I am 2020 years 8 months 8 days old. The age your program calculated is correct, mathematically.
7th Aug 2020, 4:08 PM
Gordon
Gordon - avatar
+ 3
Checked with a valid date it works Checked with bad date also works (got warning) But I didn't test with so many date ... Now can we see Python in tags please?
7th Aug 2020, 4:13 PM
Ipang
+ 2
It's better to specify a relevant language in tags instead of asking 'help me to improve' XD
7th Aug 2020, 4:02 PM
Ipang
+ 2
Ipang can you answer me
7th Aug 2020, 4:04 PM
S.G.INGALE
S.G.INGALE - avatar
+ 2
Ipang Gordon This code has been updated check if you want 😊
8th Aug 2020, 1:01 AM
S.G.INGALE
S.G.INGALE - avatar
0
👍
8th Aug 2020, 1:58 AM
Gordon
Gordon - avatar