DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+6 =
Submit