I can\'t really think of any reason why python needs the del keyword (and most languages seem to not have a similar keyword). For instance, rather than deletin
del
The "del" command is very useful for controlling data in an array, for example:
elements = ["A", "B", "C", "D"] # Remove first element. del elements[:1] print(elements)
Output:
['B', 'C', 'D']