Python code to sort the items (in ascending order) in the array…

Question Answered step-by-step Python code to sort the items (in ascending order) in the array… Python code to sort the items (in ascending order) in the array based on the third item of each tuple.¬†Given:Mydata = [(name1, address1, 45), (name2, address2, 55), (name3, address3, 30), K items…]¬†Output should be (ascending order based on the third item of each tuple):name3, address3, 30name1, address1, 45name2, address2, 55…. k lines Computer Science Engineering & Technology Python Programming CS 610 Share QuestionEmailCopy link Comments (0)

Leave a Comment

Your email address will not be published. Required fields are marked *