input: Write a function to calculate the product of all elements in a list.
  assert product([1, 2, 3, 4]) == 24
  assert product([5, 6, 7]) == 210
  assert product([10, -2, 3]) == -60
output: def product(lst):
      result = 1
      for num in lst:
          result *= num
      return result