ValueError: invalid literal for float():

The python error ValueError: invalid literal for float(): occurs when the built-in float() function is called with a string argument which cannot be parsed as a float number. The float()…