Answers for "python how to fill a list automatically"

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 "python how to fill a list automatically"

Python Answers by Framework

Browse Popular Code Answers by Language