+ 1
Argentina Exercise: Failing test case 5
Hello go Guys, Could you please help me to findthe error in my code? Only the test case 5 Fails. THXX ar=int(input()) us=int(input())*50 k=us/ar if us<ar: print("Dollars") elif us>ar: print("Pesos")
6 Answers
+ 5
What happens if us == ar?
+ 3
Consider the case when equality holds.
+ 2
You have to convert the Pesos to Dollars, "the exchange rate is 2 cents for every Peso" (1 Peso = 0.02 cents)
Then:
ar = int(input()) * 0.02
us = int(input())
+ 2
👑 Prometheus 🇸🇬 But the question don't consider that situation https://www.sololearn.com/Discuss/2184619/?ref=app
0
p, d = int(input()), int(input())
print("Dollars" if d < .02 * p else "Pesos")
0
Remove the *50 at the us variable and instead divide the ar variable by 50