C
candide
Is the del instruction able to remove _at the same_ time more than one
element from a list ?
For instance, this seems to be correct :
However, the following doesn't work :
Does it mean the instruction
del z[2], z[3],z[6]
to be equivalent to the successive calls
del z[2]
del z[3]
del z[6]
?
element from a list ?
For instance, this seems to be correct :
>>> z=[45,12,96,33,66,'ccccc',20,99]
>>> del z[2], z[6],z[0]
>>> z [12, 33, 66, 'ccccc', 20]
>>>
However, the following doesn't work :
Traceback (most recent call last):>> z=[45,12,96,33,66,'ccccc',20,99]>>> del z[2], z[3],z[6]
Does it mean the instruction
del z[2], z[3],z[6]
to be equivalent to the successive calls
del z[2]
del z[3]
del z[6]
?