0
Code Coach Halloween candy
Hello, Could someone please give me a hint what I could improve. 2 of the test runs are correct. But the others are wrong. Sadly I can't see the result. I also tried this code on my pc on python. I just can't see my mistake. Dear sololearn it would be easier if we could see all results of the test runs. Thanks in advance. x = int(input()) y=2/x z=y*100 b=round(z) print(int(b))
2 Respuestas
+ 5
Denis Durban
What is the use of z here🤔..
no use of variable z& b is not defined
Just some corrections and i got this..
x = int(input())
y=2/x*100
from math import ceil
print(ceil(y))
+ 1
Tนktนk💕 thanks for your response.
Yes, z is not really necessary.