num = [1,2,3,4,5,6,7,8,9,10]
index = [3,7]

start = index[0] - 1
end = index[1] - 1

while start < end:
    num[start], num[end] = num[end], num[start]
    start += 1
    end -= 1

print(num)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: