Skip to content

Instantly share code, notes, and snippets.

@colinmcintosh
Created November 9, 2015 16:15
Show Gist options
  • Save colinmcintosh/cdaf8859240617d44fe3 to your computer and use it in GitHub Desktop.
Save colinmcintosh/cdaf8859240617d44fe3 to your computer and use it in GitHub Desktop.
exercise_13.py
def max_in_list(list_of_numbers):
x = list_of_numbers.pop()
for i in list_of_numbers:
if i > x: x = i
return x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment