Select item from list python

# list
my_list = ['1', '2', '3', '4', '5', '6', '7', '8']

# Select 3 to 7
print(my_list[2:7])

Output:

['3', '4', '5', '6', '7']