DEV Community

Discussion on: [Basic] Python age calculator

Collapse
 
geraldew profile image
geraldew

It took me quite a lot of clicks to find the place where the calculations happen. From a quick look you don't seem to have a valid calculation method.

In short, the line:

  • years = seconds // (3600 * 24 * 365)

will not always be correct (for a couple of reasons).

Collapse
 
iamjaydev profile image
iamjaydev

@geraldew Thanks for feedback 👍