Wednesday, 15 January 2014

python - Format a string with a space between every two digits -


Input: string = 53434951

I need to split the string so that the output reads: 53 43 9 51

You can use something like this:

  S = "534349511" print " (I, lane, 2)])  i  

No comments:

Post a Comment