Python on the Train, Part 2
Python on the Train, Part 2 [I wrote this yesterday morning] Me: there will be no more Python on train, and especially not at 6 am, the crack of dawn when I am basically still asleep anyway (yes, even me, who is usually bouncing around brightly, full of energy). Also me: I love coding I can't sit still on the train My mind is too full of everything to read any books at the moment It makes the train journey go by sooooo fast but in a good way I need to finish this course. Iterators and Generators Finally, I am on to these. I always loved iterators in JavaScript sooo much. Safe to say they were like my favourite thing. Introduction to Iterables Tbf I know what these do but always room to learn some more... "In Python, an iterable is an object that's capable of being looped through one element at a time." 10/10 definition. Has really helped me to grasp it some more and to understand it some more at a subconscious level. "We commonly use iterables to perform the pro