input: Write a python function to calculate the total cost from prices and quantities lists.
  assert calculate_costs([3, 5, 2, 1], [2, 4, 3, 5]) == 28
  assert calculate_costs([10, 20, 30], [1, 2, 3]) == 140
  assert calculate_costs([1, 2, 3], [0, 0, 0]) == 0
output: def calculate_costs(prices, quantities):
      return sum(p * q for p, q in zip(prices, quantities))