Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to clear an array python

array = [1, 2, 3, 4, 5, 6, 7, 8, 9]
print(array)
# Output [1, 2, 3, 4, 5, 6, 7, 8, 9]

array.clear()
print(array)
# Output []
 
PREVIOUS NEXT
Tagged: #clear #array #python
ADD COMMENT
Topic
Name
6+2 =