# Create a list in a range my_list = list(range(1, 10)) print(my_list) >>> [1, 2, 3, 4, 5, 6, 7, 8, 9]