Apr-10-2019, 03:48 AM
List method append adds item to the end of the list. If you want put item to specific place then you can use insert method which inserts an item at a given position.
>>> items = list() >>> items.append(['b']) # append ['b'] to end of items >>> items [['b']] >>> items.insert(0, ['a']) # insert ['a'] at index 0 to items >>> items [['a'], ['b']]
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.