-
-
Save codecademydev/1d3a259d9b11d82574c28c649765f5d8 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def max_num(nums): | |
largest_num = 0 | |
for i in nums: | |
if i > largest_num: | |
largest_num = i | |
return largest_num | |
print(max_num([50, -10, 0, 75, 20])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment