input: def evaluate(expression: str) -> int: 
      """
      Evaluate a given postfix expression.
      The input to the program should be a string with the postfix expression.
      The output should be the evaluated value of the expression.
      >>> evaluate("2 3 + 4 5 * *")
      46
      >>> evaluate("5 3 * 2 +")
      17
      """
      expression = expression.split() 
      stack = []  
      for element in expression: 
          if element.isdigit(): 
              stack.append(element) 
          else:  
              val1 = stack.pop() 
              val2 = stack.pop() 
              stack.append(str(eval(val2 + element + val1))) 
      return (int(stack[0]))
output:     expression = expression.split() 
      stack = []  
      for element in expression: 
          if element.isdigit(): 
              stack.append(int(element)) 
          else:  
              val1 = stack.pop() 
              val2 = stack.pop() 
              if element == '+':
                  stack.append(val2 + val1)
              elif element == '-':
                  stack.append(val2 - val1)
              elif element == '*':
                  stack.append(val2 * val1)
              elif element == '/':
                  stack.append(val2 / val1)
      return stack[0]