- 1
[SOLVED] Can anyone help me with the fruit bowl task?
here is my code, i have no idea what's wrong about it. fruit = int(input()) x = fruit / 2 if fruit < 3: y = 0 print(y)
4 Answers
0
# Hi, Unexpected Explosions !
# You can compare your solution to this one:
a = int(input()) / 2
print(int(a / 3) if a >= 3 else 0)
+ 1
Per Bratthammar, thank you, i will make sure to try it out
0
Describe the task.
Why do you define the variable "x" and don't use it anywhere?
- 1
Solo, because if i simply write "fruit / 2" it doesn't work