Skip to content

Instantly share code, notes, and snippets.

@hasinhayder
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasinhayder/3d0863dd2b1934441272 to your computer and use it in GitHub Desktop.
Save hasinhayder/3d0863dd2b1934441272 to your computer and use it in GitHub Desktop.
max.py
def main():
print max([2,3,4,5,1,2,11,2,8,3,10])
def max(nums):
_max=nums[0]
for n in nums:
_max = _max if (_max>n) else n
return _max
if __name__ == "__main__": main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment