How to add and remove data in Tuples…

•

In this blog we will discuss about how to add the and remove the tuple

Codes were given below…

first make the tuple of your choice…

data = ('Cars' , 'Planets' , 'Homes' , 'Forests') # declaring a tuple

check and print the tuple using print command…

print(data) # print the tuple

add value to the tuple using append…

now check the updated tuple using print command

print('Updated Tuple: ',data)

Now see how to remove the value from data by using remove function

Now print the updated tuple using print command

If you like the post

Give us a comment and share post as much as you can for support

Leave a Reply

Your email address will not be published. Required fields are marked *