Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to reduse the size of a list in python

# Reduce size of list by 2 elements.
values = values[:-2]
print(values)
[10, 20, 30, 40, 50]
[10, 20, 30]
 
PREVIOUS NEXT
Tagged: #reduse #size #list #python
ADD COMMENT
Topic
Name
7+6 =