split string in the middle python

34

split string in the middle python -

firstpart, secondpart = string[:len(string)/2], string[len(string)/2:]

Comments

Submit
0 Comments