title: check if a string contains a digit in python
body: <p>I am checking a string in python for a digit. I have used the is_digit() method but doesnt look like it works.
  this is my string 302 E 34th 101
  so i want to check if the last split of the string is a digit and if true,cut it and assign it to a value.
  here is my code</p>
  
  <pre><code>if split("302 E 34th 101")[-1].is_digit():
    digit=split("302 E 34th 101")[-1]
  </code></pre>
  
  <p>this doesnt seem to work as expected since it does not return result.
  Does anyone know the best way to do this? maybe using a regular expression?
  Thanks in advance.</p>