Sorry for a dumb and simple question, but I don't understand why the following Python code doesn't work as expected.
>>> l = [1, '+', 2, '']
>>> l
[1, '+', 2, '']
>>> [l[0]]
[1]
>>> l[2:]
[2, '']
>>> l[2:][0]
2
>>> [l[0]].append(l[2:][0])
>>>
I was expecting [1, 2], but the expression is evaluated to nothing.