list.append
is a method that modifies the existing list. It doesn’t return a new list — it returns None
, like most methods that modify the list. Simply do aList.append('e')
and your list will get the element appended.
list.append
is a method that modifies the existing list. It doesn’t return a new list — it returns None
, like most methods that modify the list. Simply do aList.append('e')
and your list will get the element appended.