Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

initialise tuple in python

# Method 1, convert list to tuple:
values = ['a', 'b', 'c']

tup = tuple(values)

# Method 2:
tup = ('a', 'b', 'c')
 
PREVIOUS NEXT
Tagged: #initialise #tuple #python
ADD COMMENT
Topic
Name
8+7 =