build a list of the numbers from 1 to 100 in python
To build a list of the numbers from 1 to 100 in Python, you can use the range function and a loop to iterate through the range and append each number to a list.
main.py
numbers = [] # create an empty list to store the numbersfor i inrange(1, 101): # iterate through the range of numbers from 1 to 100 numbers.append(i) # append each number to the listprint(numbers) # print the list of numbers