S
21

I kept getting stuck on loops in Python until a friend told me to write the end condition first

3 comments

Log in to join the discussion

Log In
3 Comments
bennett.aaron
Actually, writing the base case first is the real trick.
1
troy_bennett90
Oh man, I used to always jump to the hard part... but starting with the base case really does make it all click.
0
annas87
annas8720d ago
Wait you used to skip the base case entirely? That's like trying to build a house starting with the roof, my brain would have melted.
7