Oct-05-2018, 02:07 AM
Now to blow your mind with a list comprehension (for the sake of learning and being Pythonic):
mystring = [word for word in "Secret agents are super good at staying hidden.".split() if len(word) % 2 == 0] print(", ".join(mystring))