Skip to content

Files

Latest commit

35b44eb · May 27, 2017

History

History
16 lines (14 loc) · 594 Bytes

File metadata and controls

16 lines (14 loc) · 594 Bytes

Python Maximum Value

The function max() returns the largest item in an iterable (like a list or string), or the largest of two or more arguments.
This lesson is in the math section, so we will focus on using max() to find the largest number in a list.

>>> max(2, 5, 1, 4, 3)
5
>>> max(2, 5.0, 1, 4.0, 3.0)
5.0

Instructions:
The starter code has a list of numbers named, well, numbers.
The variable highest is initialized to numbers.
Make the value of highest equal the largest number in numbers.