comefrom: <garvit244>150_1.py
code: def evalRPN( tokens):
      if not tokens:
          return 0
      
      stack = []
      for val in tokens:
          if val == '+':
              val1 = stack.pop()
              val2 = stack.pop()
              stack.append(val1 + val2)
          elif val == '-':
              val1  = stack.pop()
              val2 = stack.pop()
              stack.append(val2-val1)
          elif val == '*':
              val1  = stack.pop()
              val2  = stack.pop()
              stack.append(val2*val1)
          elif val == '/':
              val1 = stack.pop()
              val2  = stack.pop()
              if val1*val2 < 0:
                  stack.append(-(-val2/val1))
              else:
                  stack.append(val2/val1)
          else:
              stack.append(int(val))
      return stack[0]
masked: def sample_funcname ( var_0 ) :
      if not var_0 :
          return 0
      var_1 = [ ]
      for var_2 in var_0 :
          if var_2 == '+' :
              var_3 = var_1.pop ( )
              var_4 = var_1.pop ( )
              var_1.append ( var_3 + var_4 )
          elif var_2 == '-' :
              var_3 = var_1.pop ( )
              var_4 = var_1.pop ( )
              var_1.append ( var_4 - var_3 )
          elif var_2 == '*' :
              var_3 = var_1.pop ( )
              var_4 = var_1.pop ( )
              var_1.append ( var_4 * var_3 )
          elif var_2 == '/' :
              var_3 = var_1.pop ( )
              var_4 = var_1.pop ( )
              if var_3 * var_4 < 0 :
                  var_1.append ( - ( - var_4 / var_3 ) )
              else :
                  var_1.append ( var_4 / var_3 )
          else :
              var_1.append ( int ( var_2 ) )
      return var_1 [ 0 ]
  