n
9

My friend's kid in Chicago asked me to teach him Python last summer.

He was 12 and got stuck on a simple loop for over an hour. I told him to take a break, but he said, 'No, I need to see why it's not counting to 10.' He figured it out by writing each step on paper. It made me think we push beginners toward the screen too fast. How many of you started by just writing things out by hand?
2 comments

Log in to join the discussion

Log In
2 Comments
the_oliver
the_oliver21h ago
Seriously, that paper method is key. @patriciah99 mentioning recursion is spot on. I had to draw little boxes for linked lists before it clicked. Why do we act like typing is thinking? For a while loop, writing "i=0, check, print, i=1" makes the mistake obvious. That kid figured out more about debugging in an hour than some do in a month.
6
patriciah99
Totally agree. That kid's paper method is how I finally got my head around recursion.
5