Deleting Tuple


Unlike lists, the tuple items cannot be deleted by using the del keyword as tuples are immutable. 
To delete an entire tuple, we can use the del keyword with the tuple name.


example.

tuple1 = (1, 2, 3, 4, 5, 6)    
print(tuple1)
del tuple1[0]    
print(tuple1)    
del tuple1    
print(tuple1)  



Output:
(1, 2, 3, 4, 5, 6)
Traceback (most recent call last):
  File "tuple.py", line 4, in <module>
    print(tuple1)
NameError: name 'tuple1' is not defined