219k views
18 votes
Identify the type of error described

Identify the type of error described-example-1

1 Answer

5 votes

Answer:

ZeroDivisionError

ValueError

Step-by-step explanation:

ZeroDivisionError occurs when you attempt to divide a number by
0.

ValueError occurs when the argument passed into a function holds the wrong value. In this case, the string is not numeric which cannot be passed into the float() function.

Hope this helps :)

User Jameo
by
4.1k points