Is there a way to split a string into 2 equal halves without using a loop in Python?
minor correction the above solution for below string will throw an error
string = '1116833058840293381'
firstpart, secondpart = string[:len(string)/2], string[len(string)/2:]
you can do an int(len(string)/2) to get the correct answer.
firstpart, secondpart = string[:int(len(string)/2)], string[int(len(string)/2):]