SyntaxFix
Write A Post
Hire A Developer
Questions
To do that you should do:
a = [5, 7, 11, 4, 5] for i in range(len(a)-1): print [a[i], a[i+1]]