0

Convert US date to EU date

What is wrong with my code? I keep falling case 3 but I can't see the output, can someone help me? Or at least I want to know what the output of case 3 is https://code.sololearn.com/c9Puq7TfaBIX/?ref=app

6th Nov 2022, 12:41 AM
Itzel Medina
Itzel Medina - avatar
4 odpowiedzi
0
May I suggest adding some comments and tabs?🥺 And what you mean by case 3? 🤔🤔🤔
6th Nov 2022, 3:11 AM
arturop200
arturop200 - avatar
0
1. Use indentation. This is not the problem, but makes it quite easier to search it. 2. Test your code with some variety of inputs to see where and how it fails.
6th Nov 2022, 5:25 AM
Emerson Prado
Emerson Prado - avatar
0
Itzel Medina We can't see the hidden tests inputs nor outputs. They are hidden to avoid people cheating - forcing the right outputs for specific inputs. Sometimes it helps to reread the task description with full attention. Many people fail these tests for minimal details, like typos, or lack/excess of an equal sign in a comparison. And my previous comment is still valid.
8th Nov 2022, 12:28 AM
Emerson Prado
Emerson Prado - avatar
- 1
Arturop I mean the output of the case number 3, all the exercises in solo learn have 4 cases and my code keeps falling in case 3, it worked in all the other cases except in that one, I only want to know what is the output so it could be easier for me to find the error
7th Nov 2022, 5:19 PM
Itzel Medina
Itzel Medina - avatar