Run
# Given tuple and item my_tuple = ('apple', 'banana') item_1 = 'cherry' print(f"Given tuple : {my_tuple}") # Convert tuple to list my_list = list(my_tuple) # Add item to list my_list.append(item_1) # Convert list to tuple my_tuple = tuple(my_list) print(f"Modified tuple : {my_tuple}")
Output