I want to append multiple elements to my list at once. I tried this:
>>> l = []
>>> l.append('a')
>>> l
['a']
>>> l.append('b').append('c')
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
l.append('b').append('c')
AttributeError: 'NoneType' object has no attribute 'append'
>>>
How can I append 'b' and 'c' at once?
my_list + ['a','b']