title: Check string for numbers in Python
body: <p>How to check if string contains numbers in Python?</p>
  
  <p>I have a variable which I am convert to float, but I want to make if statement, to convert it to float only if it contains only numbers.</p>