TOPIC

Python - Error 5%

Luis Arruda Antonio Soares asked 5 months ago

O código abaixo apresentou erro de 5%. Alguém pode me ajudar a entender o motivo?

x,y = input().split()
x = int(x)
y = float(y)

if(x==1):
    y = y * 4
elif(x==2):
    y = y * 4.5
elif(x==3):
    y = y * 5
elif(x==4):
    y = y * 2
elif(x==5):
    y = y * 1.5
print("Total: R$",round(y,2))```

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.