5
Just got my first Python script to work after two days of trying!
A week ago, I was typing out the same five lines of code over and over in the console. Now I finally wrote a script that takes a list of numbers and prints the even ones. I watched a video on for-loops last Tuesday and it just clicked. Has anyone else had a moment where loops suddenly made sense?
2 comments
Log in to join the discussion
Log In2 Comments
ray_mitchell6d ago
Loops are like finding the right rhythm!
6
matthewsullivan6d agoMost Upvoted
Oh man, that's a nice way to put it. My rhythm is more like a broken drum machine stuck on the same bad beat for way too long. I just spent an hour fixing a loop that was adding the same number twice. Turns out my rhythm was just me, accidentally writing the same line of code two times in a row. So much for finding the groove.
8