Name

del

Examples
a = [1,2,3]
print(a) # Prints: [1,2,3]
del a[0]   # Delete the list member at index 0. 
print(a) # Prints: [2, 3]
del a      # Delete the variable 'a'

b = {'a': 1, 'b': 2, 'c': 3}
print('a' in b) # Prints 'True'

del b['a']
print('a' in b) # Prints 'False'
Description
Syntax
del a
Parameters
a
i
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License