Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

append multiple values to 2d list python

gradebook = [["physics", 98], ["calculus", 97], ["poetry", 85], 
             ["history", 88]]
print(gradebook)

# now append other values that you wish to add
gradebook.append(["computer science", 100])
print(gradebook)
 
PREVIOUS NEXT
Tagged: #append #multiple #values #list #python
ADD COMMENT
Topic
Name
2+8 =