I wait from a server to send me a list which includes ip followed by a "," followed by a port followed by ";" and then there's another tuple... and another and x tuples...
the example is:
127.0.0.1,45403;127.0.0.1,47146;127.0.0.1,52888
I want to reorganize it so I have in each loop x iteration
Ipx = 127.0.0.1
Portx = 45403
In the next iteration of the loop
Ipx = 17.0.0.1
Portx = 47146
etc for every tuple (Ipx and Portx are different varibles)
I have tried
ipx , portx = lista.split(";")
print ipx
print portx
but it doesn't work...