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
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