Python Remove Tuple Items


Remove Tuple Items

Note: You cannot remove items in a tuple.

 Tuples are unchangeable, so you cannot remove items from it, but you can delete the tuple completely:

Example

The del keyword can delete the tuple completely:

thistuple = ("apple", "banana", "cherry")
del thistuple
print(thistuple) #this will raise an error because the tuple no longer exists
Try it Yourself »


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.