Question: write this in paython the output should be the same Write a function called coin _ matches ( ) that takes a list of coin
write this in paython the output should be the same Write a function called coinmatches that takes a list of coin values and a list of coin
names of the same length. This function returns a list of the indices where the coins' values
match the name of the coin.
Assumptions:
The length of the list of values is not longer than the list of coin names.
The coins you can expect are: penny nickel dime quarter dollar
Signature:
def coinmatchesvalues names:
#your code here
#
return
Examples:
coinmatchesdime'dime','nickel' output
coinmatchesdime 'dime', 'dime'output
penny 'dime', 'nickel', 'dollar', 'dime', 'nickel', out put
dime 'dime', 'penny' output
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
