input: def max_revenue(weights: List[int], values: List[int]) -> int:
      """
      Calculate the maximum possible revenue from the items with given weights and values.
      >>> max_revenue([2, 1, 3], [4, 2, 3])
      7
      """
output:     dp = [0] * (sum(weights) + 1)
      for w, v in zip(weights, values):
          for j in range(sum(weights), w - 1, -1):
              dp[j] = max(dp[j], dp[j - w] + v)
      return max(dp)