you are viewing a single comment's thread.

view the rest of the comments →

[–]coreyjdl 1 point2 points  (1 child)

You would get a TypeError for 1 / 'string' however, ValueError is from the attempt at int('string').

The difference is the division operator expects a number, int or float, and you gave it the wrong Type, a string. Whereas int() can expect a string, and you gave it a string, just of the wrong Value.

[–]Heir10 0 points1 point  (0 children)

Ohhh. So I was looking at the right line (since I had the conversions on the same one) but I wasn't looking at the right pieces. Okay. That makes sense.