I can see how that would be confusing, but in general, it doesn't matter either way. Switching it like you suggested would change the Calculation Result: line, but it wouldn't change the actual function return which is printed out separately.
If you swapped those, you'd see:
Calculation Result: -1
2.0
The important part is that second line; that's printed from the function's return.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I can see how that would be confusing, but in general, it doesn't matter either way. Switching it like you suggested would change the
Calculation Result:
line, but it wouldn't change the actual function return which is printed out separately.If you swapped those, you'd see:
The important part is that second line; that's printed from the function's return.