Hello everyone,
I am a learner, who found this helpful community where one's query is satisfied in so many great ways.
I have one such query regarding Recursion. Can anyone help me to know about the effects of Recursion in Python? Does it cause any trouble?
Harshali_1
0
Newbie Poster
Recommended Answers
Jump to PostThis rather old post of mine discusses the use of recursion in general terms; the discussion following it in that thread might prove of value as well. While it is presented vis a vis C++, it applies to Python just as well, IMAO.
Jump to PostIndeed there are cases where a loop can be used instead of recursion, and in those cases the loop will carry less overhead. These are mainly encountered in programming courses when the concept of recursion is first introduced.
(I don't know about Python specifically, but a decent compiler will recognise …
All 7 Replies
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
HimaniBansal
-6
Newbie Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
JamesCherrill
commented:
Thanks for clarifying that.
+15
sritaa
-3
Newbie Poster
Banned
rproffitt
commented:
Spam to me.
-3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.