0
test = ['a', 'b', 'c','d']

I would like to obtain a list as follows:

[('a','b'),('b','c'),('c','d')]

I have tried applying iterator() to the list and using next() but this doesn't achieve the desired result

laszlopanaflex
  • 1,616
  • 2
  • 18
  • 32

0 Answers0