does recursion cause any trouble?



does recursion cause any trouble?..

Answer / Ruchi Tiwari

In Python, recursion can cause trouble if not implemented correctly. It can lead to stack overflow errors, where the maximum call stack size is exceeded. To avoid this, you should ensure that the base case is reached and that the function terminates eventually.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is docstring in Python?

1 Answers  


Tell us which python function will you use to convert a number to a string?

1 Answers  


How do you perform pattern matching in python?

1 Answers  


What is the use of dir() function?

1 Answers  


What are the best sites to learn python?

1 Answers  


Write a program in python to check if a number is prime.

1 Answers  


Why do we use uuid?

1 Answers  


What is a namedtuple?

1 Answers  


How do I parse xml in python?

1 Answers  


What is long in python?

1 Answers  


What is the output of print str[4: ] if str = ‘ python language’?

1 Answers  


How can you share global variables across modules?

1 Answers  


Categories