mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
16 lines
209 B
Python
16 lines
209 B
Python
# NguyenU
|
|
|
|
import math
|
|
def find_max(nums):
|
|
max = 0
|
|
for x in nums:
|
|
if x > max:
|
|
max = x
|
|
print(max)
|
|
|
|
def main():
|
|
find_max([2, 4, 9, 7, 19, 94, 5])
|
|
|
|
if __name__ == '__main__':
|
|
main()
|