Answers for "how to fill a list from mylist"

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

Python Answers by Framework

Browse Popular Code Answers by Language