i encountered a problem in the below code
def capitalize_names(my_input):
"""fill in the function"""
return
def test_capitalize_names():
assert ["James"] == capitalize_names(["JAMES"])
assert ["Harry", "Jack"] == capitalize_names(["HArry", "jack"])
i used below code to fill in the above function
my_input = map(str.capitalize, my_input)
return my_input
it is returning ['James']but i want it to return ["James"]to satisfy the assert statements and i cannot use any control statements