python-crash-course/Chapter_04/4-04_one_million.py
2025-01-22 12:32:29 -05:00

5 lines
168 B
Python

# Excercise 4-4 One Million
# Learning Objective: Create a list from a for loop utilizing range method.
myList = [value for value in range(1, 1_000_001)]
print(myList)