title: Python Convert Fraction Inside String to Integer
body: <p>How can I convert an input entered as a fraction (eg, "4/2") into an integer in python 3.5? I have tried using both of the following codes:</p>
  
  <pre><code>b = int(input("Please enter a value for b of the quadratic equation: "))
  b = int(float(input("Please enter a value for b of the quadratic equation: ")))
  </code></pre>