Answers for "list to tuples python"

1

List to tuple

sample_list = ['Compile', 'With', 'Favtutor']

#convert list into tuple
tuple1 = tuple(sample_list)

print(tuple1)
print(type(tuple1))
Posted by: Guest on October-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language