Python - Way to iterate through a string xe-1/2/3 : I have been trying this for days but nothing. 

I extract multiple values of type xe-1/2/3 and so on. I have to write a python script in such a way that,
for xe-1/1/3,
if it is 1, and the next value is 1, the value gets saved for FPC1: PIC1
for xe-1/2/3
if it is 1, and the next value is 2, the value gets saved for FPC1: PIC2
for xe-2/1/3
if it is 2, and the next value is 1, the value gets saved for FPC2: PIC1

and so on ...

Need urgent help !