22nd Jun 2023, 1:52 AM
Amirhossein
Amirhossein - avatar
2 Answers
+ 6
amir , as Junior already mentioned, we have to perform 2 divisions. > if we use // operator (integer division) for both divisions, we do not need to convert to int.
23rd Jun 2023, 2:03 PM
Lothar
Lothar - avatar
+ 2
Read the task. We only need apples not bannas we split the fruits in half by dividj g by 2. Every 3 fruits make one pie. That number we split divide the that by 3 and now we have the pies. Were probably going to get some decimal so we just cast the number of pies as an int and print that out. I broke it down for you try and put it in simple steps and follow that.
22nd Jun 2023, 1:56 AM
Junior
Junior - avatar