Tasks: Assign a list of 5 friends name Allow these 5 friends to enter the number of apples that they have. Total the apples of all the friends in the list Note: It should not exit from the loop in case they entered a wrong value or character Do not allow a person to enter values that are not in the list of your 5 friends name Not all friends may enter the value Terminate if the word "DONE" is entered, then, display the summary of friends who entered values and the total of apples.
Tasks: Assign a list of 5 friends name Allow these 5 friends to enter the number of apples that they have. Total the apples of all the friends in the list Note: It should not exit from the loop in case they entered a wrong value or character Do not allow a person to enter values that are not in the list of your 5 friends name Not all friends may enter the value Terminate if the word "DONE" is entered, then, display the summary of friends who entered values and the total of apples.
Related questions
Question
python
- Tasks:
- Assign a list of 5 friends name
- Allow these 5 friends to enter the number of apples that they have.
- Total the apples of all the friends in the list
- Note:
- It should not exit from the loop in case they entered a wrong value or character
- Do not allow a person to enter values that are not in the list of your 5 friends name
- Not all friends may enter the value
- Terminate if the word "DONE" is entered, then, display the summary of friends who entered values and the total of apples.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps