Worst Day Python Data Science | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

14th Apr 2021, 6:20 PM
Goyo Dominguez
Goyo Dominguez - avatar
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!
14th Apr 2021, 10:06 PM
Vanessa Nilsson
+ 1
Skrub You mean in the input? Tought that the input was going to be an month name as text. Thank you very much!!
15th Apr 2021, 4:26 PM
Goyo Dominguez
Goyo Dominguez - avatar
0
Goyo Dominguez No problem!
15th Apr 2021, 10:37 PM
Vanessa Nilsson