You are viewing a single comment's thread. Return to all comments →
N = int(input()) def reorder_string(my_string): l_my_string = list(my_string) even_string = "".join([l_my_string[i*2] for i in range(0,(len(my_string)+1)//2)]) uneven_string = "".join([l_my_string[1+(i*2)] for i in range(0,len(my_string)//2)]) print(even_string, uneven_string) for _ in range(0,N): reorder_string(input())
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: Let's Review
You are viewing a single comment's thread. Return to all comments →