title: How to run the math from an input in python
body: <p>I am creating a game in python where I need to run basic math operations. These operations would be provided by a user as input. How do I do this?</p>
  
  <p>So far, I have independent variables for each number and each operator, however, when I run the code, it does not recognize the operator <code>('+','-','*','/')</code> as an operator, but rather as strings. Therefore, when running the programming it would run as <code>1'+'1</code>.</p>
  
  <pre><code>print("Now you can solve it. ")
  vinput1=int(input("Please input the first number"))
  print("First number is recorded as", vinput1)
  
  vop1=input("Please input your first operator")
  print("Your operator is recorded as", vop1)
  
  vinput2=int(input("Please input the second number"))
  print("Second number is recorded as", vinput2)
  
  vsofar = (vinput1, vop1, vinput2)
  print(vsofar)
  </code></pre>
  
  <p>Computer's output:</p>
  
  <pre><code>(1, '+', 1)
  </code></pre>