Lecture notes for the Introduction to Computer Science I by James Tam Return to the course web page

Example Programs: Recursion

Description

Program name

A nominally recursion program with an error (no base case)

Recursion1.py

Sums a series of numbers from 1 up to and including a value entered by the user (max 998) sumSeries.py
The example fulfills the requirements for sensible recursion  but simply sues up too many recourses Recursion2.py