Occurs when a string cannot be converted to a float.
value = "abc"
number = float(value)Traceback (most recent call last):
File "reproduce.py", line 2, in <module>
number = float(value)
ValueError: could not convert string to float: 'abc'
value = "12.3"
number = float(value)
print(number)12.3
float() only works with numeric strings.