Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

expand array to a certain size python

return some_list[:target_len] + [0 for _ in range(target_len - len(some_list))]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #expand #array #size #python
ADD COMMENT
Topic
Name
6+1 =