Contact: aviboots(AT)netvision.net.il
43,882 questions
57,269 answers
573 users
lst = [5, 8, 0, 2, 1, 8, 9] N = 3 lastN = lst[-N:] print(lastN) ''' run: [1, 8, 9] '''