Question: Six drinks are read from input. Define a function print _ beverages _ list ( ) that has three parameters and outputs: ' My favorite

Six drinks are read from input. Define a function print_beverages_list() that has three parameters and outputs:
'My favorite drinks:' on the first line.
'-', followed by the value of the first parameter on the second line.
'-', followed by the value of the second parameter on the third line.
'-', followed by the value of the third parameter on the fourth line.
print_beverages_list() should not return any value.
Click here for example
Ex: If the input is:
chai
smoothie
cocoa
cider
water
latte
then the output is:
My favorite drinks:
- chai
- smoothie
- cocoa
My favorite drinks:
- cider
- water
- latte

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!