Learn Recursion with a Trick and a Treat

Chad Mowbray
3 min readFeb 8, 2021

The basics of recursion explained with a simple example in Python

recursive candy

It might not be Halloween yet, but it’s never too early to start getting prepared.

Recursion is a baffling and counter-intuitive way to solve problems for new programmers, but if you want to get anywhere, you need to have a solid grasp of the basics.

--

--