+ 1

Please explain me what is recursion and how to use it?

6th Feb 2022, 6:52 PM
Anshuman Routray
Anshuman Routray - avatar
7 Answers
+ 2
Recursion will be explained in lesson 68 of Python Core
6th Feb 2022, 6:55 PM
Lisa
Lisa - avatar
+ 1
Recursion is a thing you should to avoid
7th Feb 2022, 5:35 PM
US Department Of State
US Department Of State - avatar
7th Feb 2022, 5:55 PM
US Department Of State
US Department Of State - avatar
+ 1
Cristian Gabriel Mazzulla Also, loops work faster in Python and it is easier to understand, so I prefer it
7th Feb 2022, 5:58 PM
US Department Of State
US Department Of State - avatar
+ 1
til’ Highlight "easier to understand" haha
7th Feb 2022, 6:08 PM
CGM
CGM - avatar
0
til’ you mean by the fact that to get to the 30th of the Fibonacci series with my recursive function, it needs to be called >7,000,000 times? whereas with a normal loop, to get to N number of the series you only need N+1 iterations?
7th Feb 2022, 5:53 PM
CGM
CGM - avatar