Recursão em Python - Como Funciona e Quando Usar?

Want to learn more about our Complete Python Course? Click on the link below to secure your spot in the next class: https://pages.hashtagtreinamentos.com... TO DOWNLOAD THE FREE MINICOURSE ON DATA ANALYSIS: https://pages.hashtagtreinamentos.com... ----------------------------------------------------------------------- ► Files Used in Video: https://pages.hashtagtreinamentos.com... ► Starting from Scratch with the OS Library in Python    • Saindo do Zero com a Biblioteca OS no Python   ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/r... ----------------------------------------------------------------------- Hey, Awesome! In today's class I want to show you what recursion is in Python and when to use recursion in Python! It may seem a little difficult to understand at first, but you will see that this structure is very useful and will help you in many cases. The idea of ​​recursion is to take a structure within a structure, that is, thinking about an example of a file folder makes it easier. You have a file folder and within that folder there are files and other folders, but within each folder there are more files and folders... So imagine that you are searching for specific files within the folder, but you need to apply this structure not only to the main folder, but to all the folders within it. So we will have a function that calls itself, because for each folder we will use this function, but when we open a folder with more files and folders we will have to use it again. That's why we will use Python recursion! To help in this process! Let's go to the class and I will explain better how it works. ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click on the bell)! ► Like our video! ----------------------------------------------------------------------- Social Networks ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos on the Hashtag Programação channel we teach several Python tips so that you can develop in this programming language! ----------------------------------------------------------------------- #python #hashtagprogramacao