Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reduce size of list

values = [1, 2, 3, 4, 5, 6, 7, 8]
print(values)


#reduce the size of this list by 2
values = values[:-2]
print(values) 
 
PREVIOUS NEXT
Tagged: #reduce #size #list
ADD COMMENT
Topic
Name
9+8 =