You are viewing a single comment's thread. Return to all comments →
solution with python:
t =int(input()) for _ in range(t): n = input() list1 = [n[i] for i in range(len(n)) if i % 2 == 0] c= ''.join(list1) print(c,end=' ') list2 = [n[i] for i in range(len(n)) if i % 2 != 0] d= ''.join(list2) print(d)
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 →
solution with python: