SarkariResultess QA Bank

RecursionError: maximum recursion depth exceeded का समाधान क्या है? इसका Python best-practice solution क्या है? — error आने पर developer क्या करे?

Other 0 Views Verified
RecursionError: maximum recursion depth exceeded का समाधान क्या है? इसका Python best-practice solution क्या है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

call the function recursively forever

call the function recursively forever
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

increase recursion blindly

increase recursion blindly
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

remove the base case

remove the base case
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

add a correct base case or replace deep recursion with an iterative loop

add a correct base case or replace deep recursion with an iterative loop
Additional Explanation
Infinite/deep recursion रोकने के लिए base case या iteration उपयोग करें। पहले traceback की exact line और input value check करें।