Skip to content

An age calculator that will show your age in years, months, and days with the help of the current date!

Notifications You must be signed in to change notification settings

triposat/Age_Calculator_Web_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation


Prettier Size
sds

Create an AGE Calculator that will show your age in years, months, and days with the help of the current date. We will use the PyWebIO module for creating a simple and interactive interface on the web. This is a python module mostly used to create simple and interactive interfaces on the web using Python programming

Installation:

pip install pywebio

Implementation:

  • Import all the required modules

    from dateutil.relativedelta import relativedelta
    from datetime import datetime
    from time import strptime
    from pywebio.input import *
    from pywebio.output import *
    from pywebio.session import *
    import time
  • Split the Birth Date of the user and the Current Date by '/'. And then typecast all the split parts into the integer. Swap months and years for both the user’s birth date and current date.

  • Check whether or not the current year is smaller than the User's D.O.B year. If the current year is smaller than through an error.

  • Read complete article here

Output:

Age

About

An age calculator that will show your age in years, months, and days with the help of the current date!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages