input: Write a function to find the maximum number from a list of non-negative integers. The function should take a list of integers as input and return the maximum number in the list. If the list is empty, the function should return 0.
  assert find_max([1, 3, 12, 5, 8, 10])==12
  assert find_max([0])==0
  assert find_max([1, 1, 1, 1])==1
  assert find_max([10, 20, 30, 40])==40
  assert find_max([])==0
output: def find_max(lst):
      if not lst:
          return 0
      return max(lst)