↻
⏵︎ Run
#take a list of elements list1 = ['apple', 'banana', 'cherry'] #unpack list items and form tuple tuple1 = (*list1,) print(f'Tuple : {tuple1}') print(type(tuple1))
Output