Splitting strings

joonas keisari_ at hotmail.com
Wed Oct 18 10:46:27 EDT 2000


i have a string "8643" how can i split it into variables:
firstvar, secondvar, thirdvar and fourthvar.

Then variables would contain:

firstvar = 8
secondvar = 6
thirdvar = 4
fourthvar = 3


Joonas.



More information about the Python-list mailing list