G
31

Pro tip: My 'for' loop finally clicked after I tried it with a list of my favorite movies

I was stuck for days until I wrote a loop to print each title from a list I made. Seeing 'The Matrix' pop up in the console made the whole concept make sense instantly. Has anyone else had a moment where a simple, personal example made a tricky idea clear?
2 comments

Log in to join the discussion

Log In
2 Comments
the_hannah
the_hannah25d ago
My first real "for" loop printed out a list of my exes. It was a short program, but it ran perfectly. The console output was a brutal lesson in both coding and my dating history. What's the weirdest list you've ever used to test a concept?
2
davis.gavin
Tested a sorting algorithm with my grocery list. Watching "milk, eggs, bread" get alphabetized felt oddly satisfying.
7