python divide string in half

69

python divide string in half -

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

Comments

Submit
0 Comments