Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dynamic list in python

list = []

for i in range(4):
    list.append(i)

print(list)
"""OUTPUT
[0, 1, 2, 3]
"""

list.remove(1)

print(list)
"""OUTPUT
[0, 2, 3]
"""
 
PREVIOUS NEXT
Tagged: #dynamic #list #python
ADD COMMENT
Topic
Name
8+6 =