Created
September 28, 2016 01:40
-
-
Save yevgnenll/b2d14929654fa5e54d8166122bdd2274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cnt = int(input()) | |
aim_strings = [] | |
for _ in range(cnt): | |
aim_strings.append(input()) | |
def encrypt_even_odd(strings): | |
even_str = '' | |
odd_str = '' | |
for idx, s in enumerate(strings): | |
if idx % 2 == 0: | |
even_str += s | |
else: | |
odd_str += s | |
return even_str + odd_str | |
for s in aim_strings: | |
print(encrypt_even_odd(s)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment