+ 1
Worst Day Python Data Science
Hi, I got an error in the last of the tests, but as it ia hiden I canât figure out where is the mistake. Here is my code: https://code.sololearn.com/c5o393bcaq5o/?ref=app Please, somebody can help me with this!! Thank you.
3 Answers
+ 1
You did nothing wrong just that your program cant handle numbers
Here is how you fix it
- Check if it is a number if then
- Translate number to month;
12 -> December
-Use translated variable instead of number one
Bonus
-Fix so it checks of the month is a valid month; June December etc on input and translation!
+ 1
Skrub
You mean in the input?
Tought that the input was going to be an month name as text.
Thank you very much!!
0
Goyo Dominguez No problem!