Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What does the base case do? | StemPy Lab
Quizzes
/
What does the base case do?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Recursion
Created by
StemPy Lab
What does the base case do?
It prints the answer
It starts the loop
It makes the problem bigger
It stops the calls, because the answer is known
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What is a recursive function?
factorial(n) is n * factorial(n - 1) with factorial(1) equal to 1. What is factorial(4)? →
More on
Python Essentials › Recursion
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A staircase has n steps. You climb one step or two steps at a time.
Medium
Without running anything, say how many subsets there are for lists of 5, 10 and 20 items.
Medium
For each function, say whether a memory (a dictionary of answers) would help, and why.
Easy
Write a recursive function all_positive(items) that gives True if every item of the list is more…
Medium
All problems on this topic →