Split a string into 2 in Python

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

Leave a Comment