Between unintelligible algorithms and beautiful fractal artwork, recursion has an intimidating reputation. But the underlying ideas behind it are simple. This tutorial presents a quick intro of recursive code, Python's features for handling recursion, and drawing fractals with the turtle module. If you've ever thought "recursion is confusing", this tutorial is for you.
Recursion has an intimidating reputation for being the advanced skill of coding sorcerers. But in this tutorial we look behind the curtain of this formidable technique to discover the simple ideas under it.
Through live coding demos in the interactive shell, we'll answer the following questions:
Beginners will be able to follow this talk. All that is required is a willingness to learn, and a willingness to have the willingness to learn, and a willingness to have the willingness to have the willingness to learn, and... so on.
Al Sweigart is a software developer and the author of Automate the Boring Stuff with Python, Coding with Minecraft, Cracking Codes with Python, Invent Your Own Computer Games with Python, and Making Games with Python & Pygame. These books are freely available under a Creative Commons license at https://inventwithpython.com.
Al enjoys haunting coffee shops, writing educational materials, cat whispering, and making useful software. He lives in San Francisco.