Intro to
Programming
(with Python)

Fall 2018
course
site

Tue Nov 27

Aside ...the perils of object oriented coding

recursion

Continue discussion of recursion.

Just for fun :

This site isn't python, but is a nice collection of images defined with recursion. Something along these lines could be accomplished with Zelle's graphic library as a possible final project.

Recursion Class Exercise :

Write a recursive function that finds the maximum value of a list.
The idea is to think of a list recursively as 
  (list) = (first_element, list)
and so max(list) = max( first_element, max(list) )
What is the stopping condition ?
https://cs.marlboro.college /cours /fall2018 /python /notes /recursion
last modified Sat November 23 2024 11:12 pm