Python половина строки
First_half=YourString[:len(YourString)//2]
Second_half=YourString[len(YourString)//2]
SvR
First_half=YourString[:len(YourString)//2]
Second_half=YourString[len(YourString)//2]