lst = [4,5,6,1,2,3] k = lst[0] for i in range(1,len(lst)): listt= lst[k:] + lst[:k] if lst[i] < k: k = lst[i] print(k)
To embed this project on your website, copy the following code and paste it into your website's HTML: