String input item is read from input and integer sum_counts is initialized with 0. Write a loop that iterates while input Item is not equal to 'Completed". In each iteration of the loop:
- Read integer food_number from input.
- Increase sum_counts by the value of food_number.
- Output the value of input_item.
- Read string input_item from input

1 input_item = input()
2 sum_counts = 0
3
4 while input_item != 'Completed':
5 food_number += sum_counts
6
7
8
9 print(f'(sum_counts) pieces')



Answer :

Other Questions