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

What type of error occurred with the code below??-example-1

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 :)

answered
User Moropus
by
8.4k points

No related questions found