id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

spragunr@jmu.edu > get_max
prev  |  next  |  chance

Return the maximum value from the provided list of integers. You may assume that all values in the list will be non-negative. Your function must be coded using Python loops. You may *not* use the built-in max function.


get_max([1]) → 1
get_max([0, 3, 2, 12, 4]) → 12
get_max([15, 3, 1, 7, 2]) → 15

...Save, Compile, Run (ctrl-enter)

def get_max(nums): # REMEMBER: DON'T USE THE MAX FUNCTION!

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy