Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
4th Edition
ISBN: 9780134444321
Author: Tony Gaddis
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 12, Problem 6MC
Program Plan Intro

Recursion:

In Python, it is possible that a function can call itself, and this concept is referred as “recursive function”.

  • There are two types of function calls in recursive function. They are as follows:
    • Direct
    • Indirect

Blurred answer
Students have asked these similar questions
A recursive function’s solvable problem is known as its __________. This causes the recursion to stop.
Fill-in-the-Blank __________ recursion is when function A calls function B, which in turn calls function A.
When a function explicitly calls itself it is called _______________ recursion.a. explicitb. modalc. directd. indirect

Chapter 12 Solutions

Starting Out with Python (4th Edition)

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning