1# Python3 code to demonstrate working of
2# Splitting string into equal halves
3# Using string slicing
4
5# initializing string
6test_str = "GeeksforGeeks"
7
8# printing original string
9print("The original string is : " + test_str)
10
11# Using string slicing
12# Splitting string into equal halves
13res_first, res_second = test_str[:len(test_str)//2],
14 test_str[len(test_str)//2:]
15
16# printing result
17print("The first part of string : " + res_first)
18print("The second part of string : " + res_second)
19