R
10

Got stuck on a simple loop for 2 hours and finally figured it out by writing it on paper

I was trying to build a for loop in Python that counted backwards and kept messing up the range() parameters until I drew each step on graph paper and saw my mistake... has anyone else found that physically writing code out helps when you're totally stuck?
1 comments

Log in to join the discussion

Log In
1 Comment
aaronf40
aaronf402h agoMost Upvoted
Wrote out a Fibonacci sequence by hand last night after my recursive function kept overflowing, and yeah, seeing the actual steps laid out made it click way faster than staring at a screen. The physical act of writing forces your brain to slow down and actually process each line.
8