Question: write function called CompareLists that takes in 2 lists as parameters and checks whether they have the same elements in the same order . If

write function called CompareLists that takes in 2 lists as parameters and checks whether they have the same elements in the same order.  If the elements are all the same, the function should return the string "Perfect match!".  If any of the elements are different, the function should return the string "whoops!". The definition of the function should be:       

def CompareLists(paramList1, paramList1):

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