Solve problem "The two halves" online - Learn Python 3 - Snakify

The two halves


Statement

Given a string. Cut it into two "equal" parts (If the length of the string is odd, place the center character in the first string, so that the first string contains one more characther than the second). Now print a new string on a single row with the first and second halfs interchanged (second half first and the first half second)

Don't use the statement if in this task.

Advertising by Google, may be based on your interests

In all the problems input the data using input() and print the result using print().

Advertising by Google, may be based on your interests