Definition The keyword delete the object. Syntax del Parameters N/A Examples del(dict)The function deleted the dictionary.
del a[b] The method perform same function as operator.delitem(a, b).
del(set) The function delete the set but the set.clear() only delete the item while the set remain in the Python memory.
|