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,836
  • 3
  • 23
  • 34

0 Answers0