O
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?
3 comments

Log in to join the discussion

Log In
3 Comments
ray_mitchell
Loops are like finding the right rhythm!
6
matthewsullivan
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
quinn_king16
For me loops clicked when I stopped thinking of them as code and just saw them as repeating a simple action.
6