Update FindMax.py

This commit is contained in:
Harshil 2018-10-22 20:42:08 +02:00 committed by GitHub
parent 67d409b6be
commit 45a1ab213e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,15 @@
# NguyenU
import math
def find_max(nums):
max = 0
for x in nums:
if x > max:
max = x
print max
print(max)
def main():
find_max([2, 4, 9, 7, 19, 94, 5])
if __name__ == '__main__':
main()