-1
Dude you have to make sure there is only one number string to convert. Ex
float('12.34')
This way it works normally. If there is any letter together you need to remove the letters and leave only the numbers to do the conversion. Try to debug what is returning the value you are trying to convert, if you only have numbers in string format it will work normally.
Please click on [Edit] and put the code as text. Putting it as an image is not ideal, understand the reasons reading the FAQ.
– hkotsubo