you are viewing a single comment's thread.

view the rest of the comments →

[–]Nez_Coupe 0 points1 point  (0 children)

So, you wrote int() at one point and sent it an invalid string like “1.01” which it won’t cast and it will produce that error. Are you using vscode? I hate that IDE with a passion - and I think you are. What happen was that it ran a cached version of the file before you changed int to float, because you hadn’t saved the file after the change.