def f(): lst = [\'a\', \'b\', \'c\'] return lst[1:]
why is f().append(\'a\') is None == True even though f().__class__
f().append(\'a\') is None == True
f().__class__
Because append() modifies the list, but does not return it.
append()