0

Python "Brain Freeze"

- Simple Operations, Today is a holiday at the children's camp, so all the children will be served ice cream. There are 3 groups of children: 23 children in the first group, 27 in the second, and 18 in the third. Every child should get 2 scoops of ice cream. Write a program to calculate and output the total number of ice cream scoops we need. ---- I've tried what I thought was accurate, clearly not lmao. Keeps saying I'm close but not sure where I'm going wrong. I've tried as a 1 line print statement and with variables My code: kids = 23 + 27 + 18 print(kids / 2) Also tried, print(23+ 27 + 18 / 2) Help? Lol

27th Jan 2021, 2:22 AM
Mike D.
Mike D.  - avatar
14 odpowiedzi
+ 3
Could you post the full question of Brain Freeze?
27th Jan 2021, 2:42 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 2
Thank you!
27th Jan 2021, 2:57 AM
Mike D.
Mike D.  - avatar
+ 1
Firstly You will have to close the addition bracket before division if (23+27+18)%2 == 0: print("The Scoop of ice cream is enough for the 3 group") else: reslt = (23+27+18)%2 print("You need to get", reslt, "scoop of ce cream more")
27th Jan 2021, 6:46 AM
Pee Frosh
Pee Frosh - avatar
0
Aysha I think the code below the question is their attempt.
27th Jan 2021, 2:47 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Edited my original question
27th Jan 2021, 2:50 AM
Mike D.
Mike D.  - avatar
0
Today is a holiday at the children's camp, so all the children will be served ice cream. There are 3 groups of children: 23 children in the first group, 27 in the second, and 18 in the third. Every child should get 2 scoops of ice cream. Write a program to calculate and output the total number of ice cream scoops we need.
10th Apr 2021, 9:27 PM
Quentin Boateng
Quentin Boateng - avatar
0
Please help, I tried what was accurate clearly I can’t find the answer.
10th Apr 2021, 9:29 PM
Quentin Boateng
Quentin Boateng - avatar
0
To put it in better explanation you need to add 2 more sets of parentheses with first adding them around the addition section and then separating the multiplication to the right of the parentheses so double parentheses all the way to the left and then the separation of multiplying with with one and then another one just to the right of the multiplication part. Sorry for my explanation I'm kinda in a rush.
29th Apr 2021, 5:44 PM
Spiciesthornet
Spiciesthornet - avatar
0
##icecream A = 23 * 2 B = 27 * 2 C = 18 * 2 Print(A + B + C)
14th Jul 2021, 5:28 PM
Jeni. J. Mercy
Jeni. J. Mercy - avatar
0
# brain freeze print ((23+27+18)*2)
22nd Aug 2021, 9:27 AM
Lisanne
0
you have to multiply you have to write print (kids * 2) if this right please like
3rd Mar 2022, 3:42 AM
Rhytham Manish Patodi