Operation on Tuples:
''' Manipulating Tuples: As tuples are immutable, if we want to add, remove, or change the tuples items, then first we must convert the tuple to a list, then perform operation on that list and convert it back to tuple. ''' #Example: countries = ("India", "Italy", "Spain", "Australia") x = list(countries) print(x) #output = ['India', 'Italy', 'Spain', 'Australia'] x.append("Russia") #add item print(x) #output = ['India', 'Italy', 'Spain, 'Australia', 'Russia'] x.pop(3) #remove item print(x) #output = ['India', 'Italy', 'Spain', 'Russia'] x[2] = "England" #change item print(x) #output = ['India', 'Italy', 'England', 'Russia'] #We covert the tuple to a list, manipulating the items...