python-crash-course/Chapter_04/4-4_oneMillion.py
2025-01-21 11:59:33 -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)