+ 1
What's wrong with my code(Argentina)?
pesos=int(input()) dollars=int(input()) exchange=int(pesos/50) if exchange>>dollars: print("Dollars") else: print("Pesos") I tried to solve some problems with if-statements, but there are mistakes. I wrote the same codes in courses, and they work. But now my codes don't want to work.I can't understand why .
3 Respostas
+ 3
Line 4 no need of >> in python . use >
+ 3
In if condition you have written extra > greater than operator remove it. otherwise code is fine
pesos=int(input())
dollars=int(input())
exchange=int(pesos/50)
if exchange>dollars:
print("Dollars")
else:
print("Pesos")
+ 2
Thank you !!! It works!!!