0

Anybody can write age calculating code?

Anybody can write code in Python where I write a birthday and how many years I am calculating?

7th Nov 2017, 6:18 PM
zura bakuradze
zura bakuradze - avatar
3 Answers
+ 9
I won't give you the accurate answer, but maybe this will help you as an inspiration :) https://code.sololearn.com/cRrhed9Fr9W4/?ref=app
7th Nov 2017, 6:32 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 3
I wrote a code similar to this that can calculate how many days old you are. You can have a look at it and re-engineer it to calculate the years. It shouldn't be that difficult. â˜ș https://code.sololearn.com/c4Wc0H1ZXf86/?ref=app
7th Nov 2017, 6:33 PM
Ghauth Christians
Ghauth Christians - avatar
+ 2
Lol Kuba 😅 we have basically the same code but mine can count back in time too. It can also count past the current year. â˜ș
7th Nov 2017, 6:37 PM
Ghauth Christians
Ghauth Christians - avatar