Remove a term from the input in tuple python

Remove a term from the input in the tuple python programming language. This program will remove a term from the tuple in python data structure. The remove() method in the Python programming language removes a given item from a list. It doesn’t give you anything. The remove() function, on the other hand, is used to get rid of a value that we don’t want to be returned.

tuplea = "I""n""l""a""r""n"
print(tuplea)
tuplea = tuplea[:2] + tuplea[3:]
print(tuplea)
listx = list(tuplea)
listx.remove("n")
tuplea = tuple(listx)
print(tuplea)

 

Output:

Inlarn                                                                                                                        

Inarn                                                                                                                         

(‘I’, ‘a’, ‘r’, ‘n’)