Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created December 1, 2020 14:51
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 amankharwal/4dd1a807a3f7f83ed9e3de0d76002f0b to your computer and use it in GitHub Desktop.
Save amankharwal/4dd1a807a3f7f83ed9e3de0d76002f0b to your computer and use it in GitHub Desktop.
# Building an algorithm with Python to find maximum namber
def find_max(l):
max = 0
for x in l:
if x > max:
max = x
return max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment