DEV Community

Discussion on: Dead Simple Python: Errors

Collapse
 
codemouse92 profile image
Jason C. McDonald

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.