input: Write a function to find the maximum number from a list of non-negative integers.
  
  assert find_max([1, 3, 12, 5, 8, 10])==12
  assert find_max([0, 0, 0, 0])==0
  assert find_max([5])==5
  assert find_max([10, 10, 11, 10])==11
  assert find_max([])==0
output: def find_max(nums):
      if not nums:
          return 0
      return max(nums)