title: Python: determine if a string contains math?
body: <p>Given these strings:</p>
  
  <pre><code>"1 + 2"
  "apple,pear"
  </code></pre>
  
  <p>How can I use Python 3(.5) to determine that the first string contains a math problem and <strong>nothing else</strong> and that the second string does not?</p>