python split string in half code example
Example 1: split string in the middle python
firstpart, secondpart = string[:len(string)/2], string[len(string)/2:]
Example 2: python divide string in half
firstpart, secondpart = string[:len(string)/2], string[len(string)/2:]