how to split a string from one point to another in python code example
Example 1: split string in the middle python
firstpart, secondpart = string[:len(string)/2], string[len(string)/2:]
Example 2: python split sentence into words
sentence = 'Hello world a b c'
split_sentence = sentence.split(' ')
print(split_sentence)