Oct-05-2018, 01:03 AM
(This post was last modified: Oct-05-2018, 01:03 AM by Drone4four.)
At precisely 13 minutes and 17 seconds into Ned Batchelder’s talk on YouTube on loops and iterables in Python, I’ve struck gold!
Based on that slide, I modified my script so it reads:
Thanks again volcano63 for Ned Batchelder's enormously helpful YouTube video!
Based on that slide, I modified my script so it reads:
mystring = "Secret agents are super good at staying hidden.".split() for word in mystring: if len(word) % 2 == 0: print(word)My expected output now matches my actual output.
Thanks again volcano63 for Ned Batchelder's enormously helpful YouTube video!