King of Nepal

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kasadanumashiri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangawafuniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichiraku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomifumihiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakimarebiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsusendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"junagatsuruya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanishio"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayatatsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noryobuoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bunizumiizumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okihonmakoto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tatoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ushijōkyotsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kisuki emiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fuokajisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotashuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutamare"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotaninanaumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōyubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kawatsuseinin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōkinzō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nisawamanza"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichishinshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"koyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeitayo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gankijurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimunejurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekitamuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yutōisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaneichikyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kazurakazarihidarimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinryokuyobun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yonkiteiakiraten"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sagatakimigikyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakakakiosamukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichisakioyabō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoryusanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satotaniryōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satoyamotoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"terataichinyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masukokimie"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeisenmegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasakijikai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirotamamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiraokaisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankyōbiho"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsumurata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujikagesatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaichiheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"magubeiumirōsawa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanoriisagoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagendaikan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yanagitsubusetsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"totoyakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santōdaizō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaiyuzurufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimarukinon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yashingen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okutakashitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"suiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"suiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"suiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunainesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"budō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankōmigikyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinyoriyukikenkiwamusha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mataheimamorusarugen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichisawayuzurufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsusawaseijun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinseifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsutōisamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamochiroku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamashumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichisawayuzurufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masawabidaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōrinsuzuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"moririeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"totoyakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taibasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinseifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takisawaseijun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakatayasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenshoin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamashumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"totoyakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nokushikinuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shumeibunko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumiwatarufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taibasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seidairyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakadaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōmatsusakiyonrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukisantoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"moririeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taibasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtsugirōhirokō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takisawaseijun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyamakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiotanifumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunahitoshiki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsubusedōga"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shumeibunko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aokitada"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitamuramabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"totoyakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunahitoshiki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyamakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamashumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okihonmakoto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumiwatarufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wakatsukiharuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"totoyakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teramonwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"totoyakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masawabidaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsutōisamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukubunamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okihonmakoto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shumeibunko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayatamakotoshitoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamataakira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenshoin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōrinsuzuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakadaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seidairyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sadahiroe"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ishiriakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōsanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaichiheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"modegichieko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"munkatananako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayatamakotoshitoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayatamakotoshitoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiranoshinobu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhachokuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yakamochidaidaka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayagi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sadahiroe"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhachokuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yakamochidaidaka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayatamakotoshitoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sahakukaisatoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbubimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kintakaminaritori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nanakokenkiwamusha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagimayuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasannaruteru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagimayuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"butohaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aratokisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōsanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumeseiya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokushoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuasahachirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaichiheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ishiriakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fusanomezō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"keitoyunosuke"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"igenhaniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamuroyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"keitoyunosuke"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōsanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitamuramabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayagi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagimayuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daidakaboshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayagi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhamegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"igenhaniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayagi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichihiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagimayuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayamiteichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukisanhanabusa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kensanoyakeoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimotoju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yunogawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimotoju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimotoju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tentaniwabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kensanoyakeoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiguchiseibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tentaniwabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotamuneichirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"musashibomayako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kurahonaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaryu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kensanoyakeoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotamuneichirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenbasenkyoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiboshikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kajifuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayamiteichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nisawamanza"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosawakiyoshieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yunogawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanekunkō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukikōtagawa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinryokuyobun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokasen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taguchifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōyanagiyoriyukiasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ochiyonakadai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujikagebushiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsumurata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatahisabiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiguchiseibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosotanirimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenmatsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimotoju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenkokorozashiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taibasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawajōrikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōrinyasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōrinyuzururi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyaikuyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadansayuri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"otōtokogen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukahonrimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyakakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukaotsumesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukisanhanabusa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kasadanumashiri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ineseifukusanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokasuito"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tentaniwabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokokukōta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tatoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nōzeiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shironekiyoshimigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mantakashi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kintagō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shunkoyumako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenshoin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masawabidaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutatake"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"munkatakenkichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujishidai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"osakiizumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"meshitabuoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumurahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukubuchōnirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyatōeinirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakibiho"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hantamisao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsubusetomeosamuni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōbōkarubo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukeharatai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayagi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zenagaseiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gaimurasanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasannaruteru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taga"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakahamahidarimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakutakōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeitanimisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teranaishiroseki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakatachibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōhōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotanifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daidakaboshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ifukafubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"butomobi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadayori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyashinobu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanimuneni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenkokorozashiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishihonhama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asuharaiku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genasakoromo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takamasatake"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takamasatake"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirasuketsune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotashuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akimotoichihisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitajusato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"korechikanogushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitanichuichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujigenkai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikadiri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsumuraruriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawamachiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"keito saya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenrikōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kijimutayuri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekakimuta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsumuraruriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadakensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchikensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akimotoichihisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamayumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishigenkō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsutanaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtasadaoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagashōhisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamayumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jutojukō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokasen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nogumibushabō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishigenkō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyōhoniku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kawagōoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamuroyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōfujihareko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sugisankichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchikensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotashuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenrikōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotashuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsutanaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenrikōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirakioyakeken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishigenkō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekikyōkunieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotanietsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nogumibushabō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukamichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtasadaoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurayasushiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nogumibushabō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirasuzue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōfujihareko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamayumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagashōhisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitajusato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kimumutashōsuke"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsutanaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamuroyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirasuketsune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kawagōoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotōkinoshō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenrikōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikadiri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sugisankichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"imōtōbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōtashirasu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtasadaoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōtashirasu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamayumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukamichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kijimutayuri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsurimishō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"muratasanzō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōnaihisaeda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitomoasasato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawahaniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sawamatsukiyoshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutamare"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuasahachirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiguchiichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekishitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhachokuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mizoguchidōhaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasankameko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniichikyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nagatajojurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"osakiizumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daimiyamunejurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisahotakoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhiroe"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasugawahisanana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukiokamegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyatōeinirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichisawayuzurufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seishun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraomitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsubusedōga"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tofujimichinori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horikomishin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"iasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sōtsuhiroshinirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeisenmegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhamegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satakeyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashigeruginko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kanarubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawasatowa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"muratahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sahakukaisatoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamayumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"narutahirakichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakitatomebiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtakyōtsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamashumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hachimonshunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōyubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomoridaiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"keito saya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiguchiichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadayori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nokushikinuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenbuoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiagiogichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"igenhaniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujisenkyoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujitaseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seikaiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seigen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitagawabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gensensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayagawasui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayagawahachidai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukusanbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokabuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"muratahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sahakukaisatoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamayumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"narutahirakichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakitatomebiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtakyōtsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamashumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hachimonshunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōyubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomoridaiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"keito saya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiguchiichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadayori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nokushikinuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenbuoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiagiogichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"igenhaniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujisenkyoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujitaseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seikaiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seigen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitagawabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsunahoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekitamuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangataeiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukaosanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadarei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukunagamabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horietsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanyoriyukion"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatairodori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyaaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatayoriyukikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"inegendaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shironekiyoshimigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daimuratoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horietsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jusakarimatsumara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gojuarashishingen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōbōkarubo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeiseimei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurayodaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumeseiki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukusankai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenrikōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukegenunkei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekisakura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seisonnakadai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kaiei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shironekiyoshimigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hitomifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawajōrikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"namikishuhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsunahoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekitamuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōkinzō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumeseiki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyaaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsunahoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtakyōtsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daimuratoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurayodaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noryobuoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"terataichinyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawamomoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horitsubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seigen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukegenunkei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"namikishuhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtakyōtsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyaaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawamomoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawamomoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtakyōtsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotamariko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutaritsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatayoriyukikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatayoriyukikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyaaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seigen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jusakarimatsumara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiogawaizumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukaosanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aratokisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirasuketsune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawajōrikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yugenai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dekumosanzōya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"koregahanabō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiratsukashukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horitsubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankagechokubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukunagamabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōbōkarubo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daimuratoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"inegendaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jusakarimatsumara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekitamuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakadaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuasarui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bunrakunokiikina"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanyoriyukion"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daimuratoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takenonaikiっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumimichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawasakaekichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukusanbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaharukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaharukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ichimonterashōhyakugō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishimei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"minatoyayoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"maitabiedako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeiseimei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masakiiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuasarui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratōsaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"oshintaisuke"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawanashiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurahachikumo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanzenbi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratōsaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurahachikumo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurokinyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishimei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masakiiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"maitabiedako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōyanagiyoriyukiasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurahachikumo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawasakaekichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanyoriyukion"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takenonaikiっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukahonrimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyashinobu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratōsaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurahachikumo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsukaharukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanzenbi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aritomoetsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shunkoyumako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okamurajikai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ineseifukusanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aritomoetsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimunejurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aritomoetsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanrobun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okamurajikai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurahachikumo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchimunejurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratōsaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwakiyoshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"musashibomayako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishiomutsumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takashimigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangawafuniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kisuki emiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hachimonshunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sawamatsubenkei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomoridaiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"utsushirakunozara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ifukakeiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōmatsusakiichiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirasuzue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kawanaikenshun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sagatakimigikyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōkinbakin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakimarebiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tameiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoryusanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakihon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurokinyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sometaniseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayagawasui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zōkofutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dekumojutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōbihoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katanakakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kazukiharuizumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sasantenri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawasatowa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomifumihiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosarakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokasama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekihisanin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mizoguchikeihisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichigawameiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kenchimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinrikiyaruyayama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mutsukaori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horitsubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotaniwabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakugendaiharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yamurafujiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakabukōchō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daishiginin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokendejiru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadansayuri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakisanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekigawakyōkichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"amandaasuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rachikakangi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainakazō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"osakitsunesanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokaeishi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kaminarikokaminarinako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rikiya kisuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutadōoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōumeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ifukasadako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimurayamahata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yanagijojurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeitayo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekishitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sabiisamu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtahi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasanmiyatsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumuratsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakibiho"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masakiiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsusawaseijun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bajōkotobukiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nota"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinyoriyukikenkiwamusha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"murasakiikue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taga"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makaeinirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinyoriyukikenkiwamusha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"murasakiikue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taga"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makaeinirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rikiya kisuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutadōoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinyoriyukikenkiwamusha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"murasakiikue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taga"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makaeinirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sabiisamu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtahi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasanmiyatsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumuratsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakibiho"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masakiiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsusawaseijun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bajōkotobukiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nota"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gaimuradaitsuna"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukaotsumesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitajusato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sugisankichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōrinyasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wagamidori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiakayuka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satotaniryōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"korechikanogushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukaotsumesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yutōhama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satotaniryōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zenagaseiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"korechikanogushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiomiharukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagashōhisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"minamotoyōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitajusato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ushijōkyotsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"korechikanogushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumurahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayaasabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zenagaseiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaneichikyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakatachibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ushijōkyotsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichisakioyabō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kaminarikokaminarinako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takamasatake"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawajōtsutomu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiroimichihiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"imōtōbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakatachibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinseifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichitashunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bumankiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyakakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakatachibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bunyamegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wagamidori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"futotayuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kintakaminaritori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rikiya kisuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiroimichihiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satotaniryōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasutadōoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konaenozomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"koyu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagashōhisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiakayuka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichitashunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumurahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitajusato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōrinyasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"imōtōbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagashōhisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takamasatake"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumurahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinseifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satotaniryōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"korechikanogushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rikiya kisuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiragi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokokukōta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"inegendaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakitatomebiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mantakashi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makinoemi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kensanoyakeoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyakatsuonore"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiguchimareko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomikashintarō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhachokuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mizoguchidōhaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumuratsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōnotaikue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanekunkō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukikōtagawa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyatōumekō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fuyabuisagō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukeharatai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayanagimayuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satoyamotoki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horikomiechiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutafuichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hitomifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiroihotate"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasanbitsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dekumojutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sabikaori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noguchibitsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtasadaoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sasannamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashigerudōhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takijurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bukōkinuetsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotanietsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masawaichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōhōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"namikishuhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ifukafubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nokushikinuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mizoguchikeihisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujishidai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirasuzue"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kumozōkisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bajōkōdai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hitominao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asuharashumukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takenonaimiyabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shisukuragenichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shintōrukuemon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sachiakirakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuneyoshukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horimochikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tachichikako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yokosanshoitoguchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwasankō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyunanahayuata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"munkatananako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiotanigisada"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakagensōi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuneyoshukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"marujojurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurasatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyunanahayuata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawanashiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hananarujinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurasatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ushijōkiyoshibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumeseiya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōsakiseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiagiogichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noguchibitsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashitsuguro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gangitsune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ikukoshobō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōhōmindai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyamutsuhito"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagawako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fushikaminarihanatera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsumeseiya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"guroasakoromo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yunogawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"guroasakoromo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyamakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuneyoshukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yokosanshoitoguchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosōkayakenni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiagiogichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asanowakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiokanori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanfunioっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakariokakai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisawagawako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bunrakunokiikina"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yokosanshoitoguchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asuharashumukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yokyōshingen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanfunioっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakariokakai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fushikaminarihanatera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiokanori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuneyoshukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsutōisamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsutōisamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasakiryushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakatayasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawamachiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangawaatsusakari"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōnaihisaeda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kintagō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kiyuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōshushunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōmachigōdō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satokoshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kawatsuseinin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurohyakugōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadayori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirayojirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichihiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fuokanarubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukubuchōnirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokakai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masakikōsaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōnushikōfutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makiokanori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiotanigisada"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aokitada"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horikomishin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawasakaekichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zōjusato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yugenfutorōmigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchikiっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ochiyonakadai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genmakifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"narutamomoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotōhisabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukikōiseya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinekeifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotanifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōseihana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhachokuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shitsushunen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenshinoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsuseishi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsugumichishiagyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takasakura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"modegichieko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"modeginokai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"umedejiru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōhōmindai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawajōbiwako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadanfuichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kanadahiroharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaiisamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōsakinōbi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanojiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōnushikōfutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekikensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fuokanarubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jusakarimatsumara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenshinoっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekikensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōsakinōbi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamasuhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satokoshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takisawanamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jusakarimatsumara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankagetsuya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tomikashintarō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dekumosankyō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tochikurakōdai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōzakakōhare"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasankameko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanrobun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekikensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"honakane"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hantamisao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukatamasuhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tochikurakōdai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satokoshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekisakura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okihonkaminari"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sahakumiiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sasantenri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanojiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgenko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtsugirōhirokō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōsakinōbi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jusakarimatsumara"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutafuichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sasantenri"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankagetsuya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takisawanamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōnushikōfutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanojiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"honakane"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayatatsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"otōtogensuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satokoshinko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtsugirōhirokō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanojiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ginmusō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okihonkaminari"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasankameko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekikensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankagetsuya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"honakane"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekigenkiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeimizoguchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokabuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekisakura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokabuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"honakane"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daidakamako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanikōon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasuimadoka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yamatatsutatsune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kazukiharuizumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaigimune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaigimune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shibakakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokatamasen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurokindai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosawakiyoshieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ijōtoheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosawakiyoshieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosarakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosarakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"keitoyunosuke"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiakayuka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teramonwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yamatatsutatsune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shibakakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamadōhōokoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numataitoguchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"murajōyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takisawanamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomomegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosarakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numataitoguchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genasakoromo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakeifuto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kajikairiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanzenbi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kajikairiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosarakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shionoyakaoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nobuji"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosarakiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomomegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiakayuka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sematanana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shibakakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasuimadoka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanmiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ijōtoheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujisenkyoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"takisawanamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sawamatsudaiharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mitsuyayasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyatōumekō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurokindai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujisenkyoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiboshikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurokindai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasuimadoka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genasakoromo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhamitsuharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gensekien"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamasorahaha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujikagesatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiraokaisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichiraku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayagawahachidai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsukijurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiroishiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"umedejiru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiranoshinobu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sasannamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōsakiseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainakazō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiraokaisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satakeyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwakiyoshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tawarayaasabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kinmatsufujimura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bunyamegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satakeyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tameiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satakeyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbutsumesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosōkayakenni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momotanimei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanse[????]tan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanse[????]tan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōsakiseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōjōkenfutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kurajimisao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashibumeibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokusadayori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yahatsudai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakutakōdai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōjōkenfutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kinmatsufujimura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiroishiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsukijurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsukijurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tofujikan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbutsumesei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwakiyoshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamasorahaha"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuhamitsuharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainakazō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gengyoyamuhata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hayagawahachidai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakutakōdai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiomitenchu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"umedejiru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsukijurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shukichiraku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgenko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwakiyoshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doっposada"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yutōhama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwakiyoshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bumankiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakeifuto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikohōmoto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiratsukashukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsugenhijiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazensen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatatokuba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenhirakiyoshihira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wagagikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanojiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokasama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dekumosenetsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanishio"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasankameko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtajieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"guchifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gojuarashiginko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kazurakazarimisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daikuragawashu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakagawasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seikaiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsutanaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraomitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikugawahisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiratsukashukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyamutsuhito"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatatokuba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seikaiba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsunahoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōokakōotoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shibakakusan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokasama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daikuragawashu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tofujikan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtajieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masukokimie"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wagagikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikugawahisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuma"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"noryōmekō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dekumosenetsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasankameko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsugenhijiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"guchifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikohōmoto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kazurakazarimisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakagawasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bumankiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakeifuto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenhirakiyoshihira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gojuarashiginko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanojiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitagawabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazensen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratahiroko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraomitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanishio"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsutanaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanshun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akamatsusakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakihon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangatachimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōtayokichirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyamachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōmachigōdō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanoyubun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyamachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kenchimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangatachimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kurateioっto"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hamamachiseibu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kichitashunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadankuniko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaidakasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgensakaesan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kenchimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeinatsumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hamamachiseibu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotani"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ojōrimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōmachigōdō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"horimochikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nobuji"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ichimontai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurayodaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakadaiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fushikaminarihanatera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatatokuba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaidakasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daisekinisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konoekisuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nobuji"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgensakaesan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tofujimichinori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanoyubun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsugumichishiagyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nokushikinuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gensekien"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gensensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daisekinisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōmachigōdō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hamamachiseibu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisanoyubun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanemigaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hamamachiseibu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gensensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatatokuba"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōtayokichirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasuokaijiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daiseonitera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsuseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"izumimotoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakueikakuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daimiyashiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakueikakuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaneyui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekini"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sennatsumitsuwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratashōhyakugō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"izumimotoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiotanimadoka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsuseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakueikakuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sennatsumitsuwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsuseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyabihoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuyohanae"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shusensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daiseonitera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyabihoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiotanimadoka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shusensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shusensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"moritaryoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawakiyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shusensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sennatsumitsuwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akitagenichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daiseonitera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuyohanae"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaneyui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"moritaryoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawakiyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinzakaseiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satabimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senzōshumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daiseonitera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akitagenichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekini"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sennatsumitsuwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"genseiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shusensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shiotanimadoka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shusensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukasakurako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akitagenichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashiatarikai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaneyui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sennatsumitsuwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sennatsumitsuwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shinzakaseiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasuokaijiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakueikakuei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yasuokaijiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"teratashōhyakugō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daiseonitera"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōjōsenkaiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaneyui"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senzōshumei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"satabimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuyohanae"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"moritaryoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishisatoseikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tasanhira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashiatarikai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashiatarikai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsukasakurako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaidakasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numashiribiwataru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitaobisato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamochiroku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekikensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dainaidakasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ashirinashihanako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekikensanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyakatsuonore"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatairodori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanemigaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawayakichikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyakatsuonore"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numashiribiwataru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akamatsusakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hitominao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotamuneichirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zenkōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamochiroku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kurasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatairodori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurohyakugōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seikideushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōtahi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasanbitsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kanarubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaiyuzurufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakabushioko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zōkofutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ashirinashihanako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakabushioko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakabushioko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zōkofutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurohyakugōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zōkofutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kurahonkuni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurohyakugōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kanarubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"momorusoho"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ashirinashihanako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nota"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatairodori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōumeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasanbitsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawayakichikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurohyakugōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanemigaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasanbitsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kanarubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanemigaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawayakichikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seikideushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasanbitsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakanemigaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numashiribiwataru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaharuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamochiroku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawayakichikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawamatairodori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"chōtanigawabuchoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahachijuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyakatsuonore"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsuokahisa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakasanbitsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bikobubahachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numashiribiwataru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numashiribiwataru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zenkōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakaiyuzurufutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fuyabuisagō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitaniyasushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kennoheimamoruko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyamachi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daidakamako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakutakōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankōshiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakutakōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sankōshiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seshigeru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kakutakōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanimuneni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanimuneni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yanagitsubusetsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotani"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tōtsubiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakabuyukōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujitaeda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamatarishukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daidakamako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gengyoyamuhata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujitaeda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanikōon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuasayotoku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakagawasakaesaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanisakiryu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gengyoyamuhata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wakatsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gurokindai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgenai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zenkōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shirosekitenshun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakamarotomika"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"narutamomoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ashirinashihanako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekigawatoheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seisonnakadai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gojuarashishingen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujitaeda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakamarotomika"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotani"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yokyōshingen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"rinbiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nietsugiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanimuneni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgenai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fuyabuisagō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gojuarashishingen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gawasakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgenai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ashirinashihanako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"otōtogensuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yanagitsubusetsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekigawatoheimamoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōhōichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ifukakeiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"maitamunejurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukukōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sannakamiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangatahidarimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukukōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaryu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ishiriakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyamabuchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyahobi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunahitoshiki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokasuito"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"imōtōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeinatsumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawatoyoharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyashō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukukōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukukōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukukōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitomoasasato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinemegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraterayu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiranojin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayutsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōshushunni"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiranojin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyashō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinemegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitsunahitoshiki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kinmatsufujimura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraterayu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitaminatoya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinemegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitomoasasato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeinatsumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mikotonoritsukakawagenchōtsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashigerudōhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akitabisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawatoyoharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kumozōkisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyashō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitaminatoya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukubunamiyo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kumozōkisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaryu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yutōisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gaimuradaitsuna"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sannakamiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yoshikafujiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeinatsumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchikensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashigerudōhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hosogawatoyoharu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiratsukarimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kumozōkisei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōjōkenfutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seimeinatsumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kuwagenkiyoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyōhonkōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ishiriakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaryu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sannakamiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyahobi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyahobi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyōhonkōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangatahidarimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"santaryu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyashō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akamatsubunirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinemegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"dakahamahidarimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyōhonkōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akitabisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kataiken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sannakamiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sabiisamu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ishiriakuro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōhōichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiratsukarimegumi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyōhonkōwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingushiken"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchikensan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taguchifutorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitaminatoya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yoshikafujiju"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"katayutsuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeikō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashigerudōhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hiranokiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"akitabisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashigerudōhiro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gaimuradaitsuna"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitomoasasato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraterayu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimuraterayu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mikotonoritsukakawagenchōtsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinemegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yutōisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yutōisami"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gaimuradaitsuna"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zennosadahana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekinemegu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fukukōzen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakakōabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sannakadakatsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasawayakichikichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimarukinon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okutakashitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimarukinon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōzakayukōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"jōzakayukōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashitsuguro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagenyutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakikotobukiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamadōhōokoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mutsutoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"meshichiseimune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchiriisagoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishihonhama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagenyutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashibumeibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"murajōyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wagamidori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seidairyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimarukinon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"murajōyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wakatsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okutakashitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujigenkai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seidairyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashibumeibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangatatamasen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbubimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomonishikitsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakugengomigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganmayoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukikōiseya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujigenkai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimarukinon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"gofujihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asanowakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagenyutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagenyutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ebisakiokiku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wakatsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numachikao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganmayoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toshikura"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okutakashitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sannakadakatsugi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ushijōkiyoshibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wakatsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sansentomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakugengomigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishihonhama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"wakatsuki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomonishikitsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchiriisagoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ebisakiokiku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisahotakoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbubimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchiriisagoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashitsuguro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisahotakoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ebisakiokiku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashitsuguro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashitsuguro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ebisakiokiku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sangatatamasen"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"guchikaori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"meshichiseimune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomonishikitsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakugengomigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakugengomigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okutakashitsu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitaobisato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbubimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mutsutoyoshin"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujimakikiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bubōkinbō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganmayoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seidairyuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yuwahiroshitsugirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"bubōkinbō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asanowakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakikotobukiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumikunieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumikunieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asanowakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumikunieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikuchiriisagoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kashitsuguro"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ebisakiokiku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"guchikaori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sakugengomigimamorumon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagenyutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"meshichiseimune"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakagensōi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomonishikitsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumikunieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sekimarukinon"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okasakiryushi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"watashibumeibi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisahotakoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganmayoru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomonishikitsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanbubimegumiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masakikōsaku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"konizumikunieda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamadōhōokoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ganko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyazenichinaru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyahobi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōtayokichirō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hisahotakoi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"miyagenyutomo"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōgawashinrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nakagensōi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tamadōhōokoshi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asanowakō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"marukochaina"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"asaikitarō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shironeboshiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyotōkinoshō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"makinoemi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kitasōkei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kunoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"osakitsunesanrō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanokaeishi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsuruyamabuchi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kingawaeda"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tenhirakiyoshihira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kennoheimamoruko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōgensakaesan"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokasama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yanagijojurō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nimiyashinobu"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kawanaikenshun"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daikumasatoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosakaeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nosatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"shōtsusatoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sarugenyasushigata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"minamotoyōko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"matsutatai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kikugawahisako"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"doyashō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kokudōkitata"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mahōnomurasaki"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ginmusō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"aragawasatorō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nietsugiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"zeihitomi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirotamamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"okihonkaminari"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōtakyoko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"fujikagebushiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seshigeru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"masawaichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"daitōseihana"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yakamochidaidaka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taketomonishikitsukasa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsuchuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tanishio"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nomurayasushiwa"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamatarishukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tokutasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"mutsukaori"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kōfujihareko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"sanguchihakukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nishō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hamafukao"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tsukisanta"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yahira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakikotobukiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kyōhoniku"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekitsuya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nagatasensato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"numashiribiwataru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ichimonterashōhyakugō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"moririeko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kurasendai"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanmiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyokokukunsei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"tentaniwabi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"naisanmiriko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"hirotamamiko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsuchuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekitsuya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seshigeru"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"toyokokukunsei"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"senetsuchuko"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"arakikotobukiichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"ginmusō"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"isekitsuya"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"kamatarishukichi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yahira"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"nagatasensato"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"yakamochidaidaka"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"seiokasama"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

`# Python3 code to demonstrate working of`

`# Splitting string into equal halves`

`# Using list comprehension + string slicing`

`# initializing string`

`test_str =` `"taniguchiyubi"`

`# printing original string`

`print("The original string is : "` `+` `test_str)`

`# Using list comprehension + string slicing`

`# Splitting string into equal halves`

`res_first =` `test_str[0:len(test_str)//2]`

`res_second =` `test_str[len(test_str)//2` `if` `len(test_str)%2` `==` `0`

`else` `((len(test_str)//2)+1):]`

`# printing result`

`print("The first part of string : "` `+` `res_first)`

`print("The second part of string : "` `+` `res_second)`

Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java
Template:Java