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
|
3373 Discussions
|
Please Login in order to post a comment
words = [] while True: try: word= input() if word: words.append(word) else: break except EOFError: break
for a in words: even = a[::2] odd = a[1::2]
t = int(input()) for _ in range(t): s = input() sEven = s[::2] sOdd = s[1::2] print(f"{sEven} {sOdd}")
my python code
t=int(input()) for i in range(t): s=input() print(s[::2],s[1::2])
This works perfectly, why review bot says that this gives wrong output? what in the world???