Skip to content

PRO TIP Block youtube.com at the DNS level β€” Pi-hole, NextDNS or your hosts file β€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Recursion for Python Beginners with Recursive Function Examples

52.6K views on YouTube

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

Learn Recursion for Python Beginners with recursive function examples. Recursion occurs when a function calls itself. In this tutorial, we will look at examples of recursion and create a recursive function for a game.

πŸ’– Support me on Patreon ➜ https://patreon.com/davegray

⭐ Become a full-stack dev with Zero To Mastery Courses:
– The Complete Python Developer: https://bit.ly/CompPythonDev
– Complete Machine Learning & Data Science: https://bit.ly/CompMachineLearning
– Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

πŸ“¬ Course Updates ➜ https://courses.davegray.codes/

❓ Questions – Please post them to my Discord ➜ https://discord.gg/neKghyefqh

β˜• Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

πŸ‘‡ Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/

πŸ”— Source Code: https://github.com/gitdagray/python-course

πŸ”— Playlist for this Python Course: https://bit.ly/dg-beginners-python

Recursion for Python Beginners with Recursive Function Examples

(00:00) Intro
(00:05) Welcome
(00:13) What is Recursion?
(00:34) Create a Recursive Function
(02:45) Return the Recursive Function Call
(04:23) Recursion vs Loops
(04:57) Review of While Loop Conditions
(09:13) Refactor RPS to a function
(11:03) Refactor RPS to a recursive function

πŸ“š Tutorial References:
πŸ”— Python Official Site: https://www.python.org/
πŸ”—Visual Studio Code Official Site: https://code.visualstudio.com/

Was this Python Recursion tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.

#python #recursion #recursive