Skip to main content

Python: Deleting a Tuple

Tuples are immutable and cannot be deleted. Just like list we cannot delete the tuple by using the del keyword. But we can entirely delete the tuple by the use of del keyword.

tup = ('physics', 'chemistry','biology')

del tup


('physics', 'chemistry', 'biology')
NameError: name 'tup' is not defined.
Submitted by devanshi.srivastava on June 12, 2021

Devanshi, is working as a Data Scientist with iVagus. She has expertise in Python, NumPy, Pandas and other data science technologies.


At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.