Answers for "fill list with values python"

1

how to fill a list in python

# Filling a list with numbers

search_list = []
search_list.extend(range(1, 101)) # [1,2,3,4,5,6,...,98,99,100]
print(search_list)
Posted by: Guest on February-16-2021

Code answers related to "fill list with values python"

Python Answers by Framework

Browse Popular Code Answers by Language