Amazing-Python-Scripts icon indicating copy to clipboard operation
Amazing-Python-Scripts copied to clipboard

[GSSOC'23] Error in Months containing even number of days in AGE-Calculator

Open Shiv-Expert2503 opened this issue 1 year ago • 3 comments

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:

  1. Go to age-calculator and run the code.
  2. Enter the month as 2(February).
  3. Enter 31 in the day section.
  4. 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

Screenshot (75) You can see the value error.

Additional context

I can fix this problem. Please grant me this opportunity!

Shiv-Expert2503 avatar May 21 '23 17:05 Shiv-Expert2503

@avinashkranjan look at this error and please assign it to me. I'm almost done with it.

Shiv-Expert2503 avatar May 23 '23 15:05 Shiv-Expert2503

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.

shubham725809 avatar May 24 '23 12:05 shubham725809

Go Ahead @Shiv-Expert2503

avinashkranjan avatar May 29 '23 18:05 avinashkranjan