117k views
10 votes
What type of error occurred with the code below??

What type of error occurred with the code below??-example-1
User IndoKnight
by
5.0k points

1 Answer

4 votes

Answer:

ValueError

Step-by-step explanation:

The string 'five' holds characters that are not numeric, meaning it will raise ValueError since the function int() does not accept arguments that are strings with characters that are not numbers/numeric.

Hope this helps :)

User Moropus
by
4.9k points