del removes an item from a list : del « Buildin Function « Python Tutorial






a = [-1, 1, 6, 3, 4, 2, 7]
del a[0]
print a
del a[2:4]
print a








13.11.del
13.11.1.del removes an item from a list
13.11.2.del can also be used to delete entire variables