Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python nested list

# example of a nested list
my_list = [[1, 2], ["one", "two"]]

# accessing a nested list
my_list[1][0] # outputs "one"
 
PREVIOUS NEXT
Tagged: #python #nested #list
ADD COMMENT
Topic
Name
8+4 =