I have below list and would like to split in to sublist with previous alphanumeric value
list = ['P1', 'P2', 'P3', 'P4', 'P5'..........']
Expected output:
output = [['P1', 'P2'],['P2', 'P3'],['P3', 'P4'],['P4', 'P5'],........]
Could anyone please give light on it