Question: pls run the pytest first: from lab03 import converter # Test cases for converter def test_converter_1(): assert converter([])==[] def test_converter_2(): assert converter([(Chris, Gaucho),(Harry, Potter)])==[Chris G.,

 pls run the pytest first: from lab03 import converter # Test

pls run the pytest first:

from lab03 import converter # Test cases for converter def test_converter_1(): assert converter([])==[] def test_converter_2(): assert converter([("Chris", "Gaucho"),("Harry", "Potter")])==["Chris G.", "Harry P."] def test_converter_3(): assert converter([("Stephen", "Curry"), ("Kobe", "Bryant"), ("Michael", "Jordan") , ("LeBron", "James"), ("James", "Harden")])== ["Stephen C.", "Kobe B.", "Michael J." , "LeBron J.", "James H."] ####################

def converter(tuplelist): -Given a list of tuples containing student's first and last names return a list of strings with the student's first name, a space, their last name initial, followed by a period. -E.g., if this tuple list was given [("Chris", "Gaucho"), ("Harry", "Potter")] the resulting list would be ["Chris G.", "Harry P."] -If the tuple list is empty return an empty list. return "stub

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