Hi, I have a problem with this code:
x = int(input())
if x <= 100:
y = 0.1
else:
y = 0.25
precio = x * (1 - y)
print(precio)
The code seems fine to me, but I'm not expecting the answer that I wanted in the last testcase of the challenge that my teacher sent me. Here are the inputs and expected outputs:
58 = 52.2
7=6.3
200=150
199=149.3
When I display the code with the last input, the answer is 149.25, which is not what im looking for, what should I do?
x = int(input())
if x <= 100:
y = 0.1
else:
y = 0.25
precio = x * (1 - y)
print(precio)
The code seems fine to me, but I'm not expecting the answer that I wanted in the last testcase of the challenge that my teacher sent me. Here are the inputs and expected outputs:
58 = 52.2
7=6.3
200=150
199=149.3
When I display the code with the last input, the answer is 149.25, which is not what im looking for, what should I do?