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 printbeverageslist that has three parameters and outputs:
'Top 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.
printbeverageslist should not return any value.
Ex: If the input is:
juice
coffee
water
cider
milk
coke
then the output is:
Top drinks:
: juice
: coffee
: water
Top drinks:
: cider
: milk
: coke
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
