Nathan has a list that contains the names of all his friends. He wants to sort it in alphabetical order and then print it. However, when he executes this code:
my_list = ['Mary', 'Bob', 'Pete', 'Jane']
my_list = my_list.sort()
print(my_list)
only None is printed! Help him – find a broken line in his code, fix it and write down the corrected line.
Write only the line that you corrected and not the whole code!