Quick actions

cmd+k|ctrl+k

Navigation

Languages

2718PythonFindMax

Snippet info

Language

Python

Visibility

public

Author

mhcrnl

Created

2018-11-14T17:36:36Z

Updated

2018-11-14T17:36:36Z

print("Hello World!")
def find_max(nums):
    max = nums[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()
INFO