+ 1

Argentina Code Coach: I got 4 out of 5 but I need help on the first one.

So, I got 4 out of 5 of test check out but the first test is not going through for some reason.and I don't know why. https://code.sololearn.com/cB23Gqfi4lJA/?ref=app

14th Jul 2020, 10:14 PM
Miss-Lydia
Miss-Lydia - avatar
5 Respostas
+ 2
No, I mean you are comparing dollar to pesos without any conversion... But 1 peso is worth 2 cents only... You should bring it to a common base...
14th Jul 2020, 10:43 PM
G B
G B - avatar
+ 1
Ok, I got it. Thank you so much. https://code.sololearn.com/cyfwHIOP0LLO/?ref=app
14th Jul 2020, 11:15 PM
Miss-Lydia
Miss-Lydia - avatar
+ 1
:)
14th Jul 2020, 11:56 PM
G B
G B - avatar
0
There is no dollar <-> pesos conversion in your code...
14th Jul 2020, 10:37 PM
G B
G B - avatar
0
What do you mean? Do you mean by making the else statement into an else if statement so I put Dollars < pesos in the code.
14th Jul 2020, 10:40 PM
Miss-Lydia
Miss-Lydia - avatar