Contact: aviboots(AT)netvision.net.il
39,926 questions
51,859 answers
573 users
lst = [1,2,3,4,5,6,7,8,9,10,11,12] N = 3 lst = lst[-N:] + lst[:-N] print(lst) ''' run: [10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9] '''