Question: Given the list of tuples data = [ ( 1 , ' b ) , ( 2 , * a ' ) , ( 3

Given the list of tuples data =[(1,'b),(2,*a'),(3,*c'1, what is the output of the following code? data.sort (key-lambda x: \times [1]) print(data) The output is: [3,'c).(1, b).(2,'a))[(1,'b'),(2,'a'),(3,'*))[(2,'a).(1,'b).3, C)](3.'c).(2,'a),(1, b'))

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!