title: How to find a float in a string - Python?
body: <p>I want to find the first float that appears in a string using Python 3.</p>
  
  <p>I looked at other similar questions but I couldn't understand them and when I tried to implement them they didn't work for my case.</p>
  
  <p>An example string would be</p>
  
  <p><code>I would like 1.5 cookies please</code></p>