We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 6: Let's Review
Day 6: Let's Review
Sort by
recency
|
3395 Discussions
|
Please Login in order to post a comment
def string(s): even_char = s[::2] odd_char = s[1::2] return f"{even_char} {odd_char}" t = int(input()) for i in range(t): s = input() print(string(s))
My solution in C may not be the optimal one, but I enjoyed coding it
the solution T= int(input()) for i in range(T): s=input() even_characters = [] # For storing even characters odd_characters = [] # For storing odd characters
T= int(input()) for i in range(T): s=input()