Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
A student forgets the base case. What does Python do? | StemPy Lab
Quizzes
/
A student forgets the base case. What does Python do?
Python Programming
Medium
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Recursion
Created by
StemPy Lab
A student forgets the base case. What does Python do?
It skips the function
It stops after many calls with a RecursionError
It runs for ever with no message
It uses 0 as the base case
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← Which part of a recursive function stops the calls?
How many digits does count_digits(4729) find, if count_digits(n) is 1 when n < 10 and otherwise 1 + count_digits(n // 10)? →
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 →