Hackbright Code Challenges

Max Number

Max Number

Whiteboard

Easier

Concepts

Math, Loops, Conditionals

Download

max-num.zip

Solution

Max Number: Solution


Find the largest integer in a list of integers.

For example:

>>> max_num([5, 3, 6, 2, 1])
6

We’ve written a file, maxnum.py, with a function, max_num:

def max_num(num_list):
    """Returns largest integer from given list"""

However, this is unimplemented.