Answers for "how to fill a list with string elements 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 "how to fill a list with string elements python"

Python Answers by Framework

Browse Popular Code Answers by Language