Amazing-Python-Scripts
Amazing-Python-Scripts copied to clipboard
[GSSOC'23] Error in Months containing even number of days in AGE-Calculator
Describe the bug
The code shows an error if the entered month is February, April, June, September, and November in the age calculator. As these months contain only 30 days, the code shows an error when 31 is given in the DAY section. And especially in the case of February as it has only 28 days sometimes 29, therefore 30 as an input in the DAY section again throws an error.
To Reproduce
Steps to reproduce the behavior:
- Go to age-calculator and run the code.
- Enter the month as 2(February).
- Enter 31 in the day section.
- See the error.
Expected behavior
The code must not show the error to any input in either month, year, or day section. It should handle all the values or can show a pop-up message that the number of days for these specific months can't exceed 30.
Screenshots
You can see the value error.
Additional context
I can fix this problem. Please grant me this opportunity!
@avinashkranjan look at this error and please assign it to me. I'm almost done with it.
I am good at machine learning and had developed lots of machine learning projects, so adding this feature is not a big task for me. so please assign me this and I am also a GSSOC 2023 contributor.
Go Ahead @Shiv-Expert2503