Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

List to tuple

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

#convert list into tuple
tuple1 = tuple(sample_list)

print(tuple1)
print(type(tuple1))
Source by favtutor.com #
 
PREVIOUS NEXT
Tagged: #List #tuple
ADD COMMENT
Topic
Name
8+9 =