del Command


☞It is used to delete all the elements and tuple object too :

Syntax :
del <tuple_name>
Example :
T=(10,20,30)
print(T)

del T
print(T)
Output :
(10, 20, 30)
    print(T)
NameError: name 'T' is not defined

Note : Tuple object does not support item deletion : TypeError i.e. del [index] or del [start_index : stop_index]