I want to find the first float that appears in a string using Python 3.
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.
An example string would be
I would like 1.5 cookies please