l.append [i], ¿el objeto no es un subíndice?
Cuando lo hago:
l = []
for i in range(10):
if i%3 == 0 or i%5 == 0:
l.append[i]
print sum(l)
yo obtengo
Traceback (most recent call last):
File "PE1.py", line 4, in <module>
l.append[i]
TypeError: 'builtin_function_or_method' object is not subscriptable
¿Realmente no hay manera de agregar todas las i que pasan la condición?