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