cards = list(range(1, 21)) a, b = 5, 10 cards[a-1:b] = cards[a-1:b][::-1] print(cards)
To embed this project on your website, copy the following code and paste it into your website's HTML: