Why is my python list append method not returning the updated list?
When you use the `append` method on a list in Python, it modifies the list in place and returns `None`. This can lead to unexpected results when trying to chain methods or operations together.
Example:
nums = [1, 2, 3]
result = nums.append(4)
print(result) # None
Solution:
nums = [1, 2, 3]
nums.append(4)
print(nums) # [1, 2, 3, 4]
Make sure to call `append` separately and then reference the modified list.