Python Multiple Choice Questions
Which of these is not true about recursion?
A. Making the code look clean
B. A complex task can be broken into sub-problems
C. Recursive calls take up less memory
D. Sequence generation is easier than a nested iteration
Explanation: Recursive calls take up a lot of memory and time as memory is taken up each time the function is called.
© 2022-2023 Python Circle