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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #nested #list
ADD COMMENT
Topic
Name
7+5 =