Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

This page removed for FERPA compliance
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Basic Operations Problem 9 Solution

Write a function that takes in 4 integers and returns the largest.
def brREMOVEDselSprouts(a, b, c, d):
  foo = max(a, b)
  foo = max(foo, c)
  foo = max(foo, d)
  return foo

Another instance of did-you-know. There's a function called max that takes in two numbers and returns the larger of the two. So with that in mind, let's trace this...



Link to this Page