Why is python list append not returning the updated list?

When using the append() method on a list, it modifies the list in-place and returns None.


  my_list = [1, 2, 3]
  result = my_list.append(4)


After appending, the original list my_list will be modified but result will be None. Always use the original list to see the appended values.

Beginner's Guide to Python