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__
Try this:
f()+['a']
Hope this helps