Intro to
(with Python)

Fall 2018

Tue Nov 27

Aside ...the perils of object oriented coding


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 ? /cours /fall2018 /python /notes /recursion
last modified Tue December 5 2023 9:59 am