Value error occurs when you apply a function to a data type correctly but the content is not suitable for that operation. For example, you can apply int() to a string of numbers such as:
int(“111”)
but you can’t convert letters to integers so following won’t work:
int(“Hello”)