1"""Filling a list with numbers"""
2
3#using a traditional for loop
4ones = []
5for one in range(10):
6 ones.append(one) #[0,1,2,3,4,5,6,7,8,9]
7
8#using a comprehension
9teens = [num for num in range(13,20)] #[13, 14, 15, 16, 17, 18, 19]
10
1# Filling a list with numbers
2
3search_list = []
4search_list.extend(range(1, 101)) # [1,2,3,4,5,6,...,98,99,100]
5print(search_list)