Question: ( Python problem ) Six drinks are read from input. Define a function print _ beverages _ list ( ) that has three parameters and

(Python problem) Six drinks are read from input. Define a function print_beverages_list() that has three parameters and outputs:
'Top drinks:' on the first line.
'1: ', followed by the value of the first parameter on the second line.
'2: ', followed by the value of the second parameter on the third line.
'3: ', followed by the value of the third parameter on the fourth line.
print_beverages_list() should not return any value.
Ex: If the input is:
juice
coffee
water
cider
milk
coke
then the output is:
Top drinks:
1: juice
2: coffee
3: water
Top drinks:
1: cider
2: milk
3: coke

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 Programming Questions!