0

Please can someone help me with this

https://code.sololearn.com/c5GYnA2cNWOc/?ref=app It is meant to give the number of pie that be obtained from a given input. I coded it and it's working but it didn't pass any of the test cases.

11th Mar 2022, 10:16 PM
Godson Nnanyelugo
Godson Nnanyelugo - avatar
6 Answers
+ 3
You need to use integer division and the output should be one without any extra text: print(pie)
11th Mar 2022, 10:55 PM
Solo
Solo - avatar
+ 2
Tell me, how can we find out what it is about?
11th Mar 2022, 10:28 PM
Solo
Solo - avatar
+ 1
print(fruit // 2 // 3)
11th Mar 2022, 10:32 PM
JaScript
JaScript - avatar
+ 1
Thank you everyone. I have solved it https://code.sololearn.com/c5GYnA2cNWOc/?ref=app
12th Mar 2022, 5:59 AM
Godson Nnanyelugo
Godson Nnanyelugo - avatar
0
This is the question. You have a bowl on your counter with an even number of pieces of fruit in it. Half of them are bananas while the other half are apples. You need 3 apples to make a pie. The task is to evaluate the amount of pie you can make with the apples in the bowl given the total amount of fruit in the bowl
11th Mar 2022, 10:43 PM
Godson Nnanyelugo
Godson Nnanyelugo - avatar