+ 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

11th Mar 2022, 1:51 PM
Mohamed Raaid
Mohamed Raaid - avatar
3 Respuestas
+ 1
You are comparing x<=us but you need calculated y as y<=us. No need else condition.
11th Mar 2022, 2:23 PM
Jayakrishna 🇮🇳
+ 1
Thanks for the help
11th Mar 2022, 2:26 PM
Mohamed Raaid
Mohamed Raaid - avatar
0
You're welcome..
11th Mar 2022, 2:32 PM
Jayakrishna 🇮🇳