+ 1
Hi guys i tried this code coach called Argentina but 2 test cases was wrong and 1 test was able to see so i did the same code
In the coding area as following 👇 peos=int(input()) us=int(input()) x=peos y=int((x/100)*2) if x <= us: print("Pesos") elif us <= x: print("Dollars") The i appyed the input a coding to the test case #1 and the coding worked and the results was the results they excepted CAN ANYONE HELP TELL ME WHY ONLY IN THAT CODE COACH IT DID NOT WORK
3 Respuestas
+ 1
You are comparing x<=us but you need calculated y as y<=us.
No need else condition.
+ 1
Thanks for the help
0
You're welcome..