Learn Backend Development Part-Time, Online
Learn Excel and Financial Modeling the Way Finance Teams Actually Use Them
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course introduces recursion in Python through the factorial function and recursive sentence generation, then applies it to drawing spirals and Sierpinski triangles. It concludes by designing and implementing a recursive music generator.
Syllabus
Recursintro
What's recursion?
Fields of application of recursion
Examples of recursion
Formal definition of recursion
Formal definition of factorial with recursion
Implementing factorial with recursion
Recursion in language
Implementing a recursive sentence generator
Drawing a spiral with recursion
Drawing the Sierpinski triangle with recursion
Recursion in music
Design of the recursive music generator
Implementation of recursive music generator
A taste of generated recursive music
Outro
Taught by
Valerio Velardo - The Sound of AI