Inside the add_comma() function, split the name in a list of parts with split(), the add a comma between index 1 and 0.
add_comma()
split()
1
0
Make sure to pick parts = name.split(" "), followed by parts[1] + ", " + parts[0].
parts = name.split(" ")
parts[1] + ", " + parts[0]