data = ['a229f7d1148c27d5ff46cbf506f92a9e', '3c73dc22ddaafa58346cc5241a78d509', 'c5ebe3eff60ef972fdd9a9d5e4762227', '1c720ec8c2615529e1500d77020a1dc2', '63d8e40d1c5aabbee5cf35a13a95b089', '0994bcd4f5722e3ae8620a483b83abbf', '06f628503dddc37956e586b9e537b3ae', 'a229f7d1148c27d5ff46cbf506f92a9e', '3c73dc22ddaafa58346cc5241a78d509', 'f6ebd290be34c47ffc84f0a4f123112a', 'c5ebe3eff60ef972fdd9a9d5e4762227', '1c720ec8c2615529e1500d77020a1dc2'] for item in zip(data[1:], data[:-1]): print(''.join(item))if you want, you may use more-itertools package form pypi
import more_itertools data = ['a229f7d1148c27d5ff46cbf506f92a9e', '3c73dc22ddaafa58346cc5241a78d509', 'c5ebe3eff60ef972fdd9a9d5e4762227', '1c720ec8c2615529e1500d77020a1dc2', '63d8e40d1c5aabbee5cf35a13a95b089', '0994bcd4f5722e3ae8620a483b83abbf', '06f628503dddc37956e586b9e537b3ae', 'a229f7d1148c27d5ff46cbf506f92a9e', '3c73dc22ddaafa58346cc5241a78d509', 'f6ebd290be34c47ffc84f0a4f123112a', 'c5ebe3eff60ef972fdd9a9d5e4762227', '1c720ec8c2615529e1500d77020a1dc2'] for item in more_itertools.windowed(data, 2): print(''.join(item[::-1]))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs