0

Could anyone please help me out with this one ?

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. My poor code : g1 = int(input("23")) g2 = int(input("27")) g3 = int(input("18")) print(2*(g1 + g2 + g3))

28th Jun 2021, 10:30 PM
Sanchit Bahl
Sanchit Bahl - avatar
1 Answer
+ 2
Why are you taking input ? Simply assign value to g1 , g2,g3 and it should work fine!
28th Jun 2021, 10:56 PM
Abhay
Abhay - avatar