The problem is on line 12 (below. score and max are both previous input values, the main py isn’t detecting any grammar issues but the console can’t get past it.
If you read the error message it says there is a string and it expected an int. This is because score is still a string.
This means line 12 is trying to do int(string/int) that is not possible.
I wouldn’t say strongly typed, it is actually known for its loose typing. In “strongly typed” languages, getting into a situation like this is almost impossible with a decent knowledge of types.
I guess so, since you don’t need to state the type of the variable, but it’s not like languages like Javascript, where it turns the value into a suitable type to do the operation, which I originally meant.
Well JS is a mess and what you describe causes bad habits. But hey I dislike JS and by now this is known.
Python is dynamically typed but at least it does give errors like this as such a thing should never be allowed.