Contact: aviboots(AT)netvision.net.il
40,849 questions
53,254 answers
573 users
lst = [3, 6, 7, 98, 99] for i in range(1, len(lst)): x = lst[i - 1] y = lst[i] print(x, y) ''' run: 3 6 6 7 7 98 98 99 '''