You are viewing a single comment's thread. Return to all comments →
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]
if not a.isdigit(): print(even,odd) else: pass
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 →
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]