#try to avoid input function a = (0,1,2,3,4,5,6,7,8,9) a = list(a) a.append(100) print(tuple(a)) ##adding element at particular index. a.insert(1,23) print(tuple(a)) ##Deleting tuple element. a.remove(6) print(tuple(a)) ##Changing a tuple element. a.sort() print(tuple(a))
Click the run button. Try to avoid input() function.