Just starting out with Python, so this is probably my mistake, but...
I'm trying out Python. I like to use it as a calculator, and I'm slowly working through some tutorials.
I ran into something weird today. I wanted to find out -1%4, and got this:
>>> -1%4
3
I checked it on c and c++ compiles as well, and 3 is the wrong answer! -1 % 4 is supposed to be 3.
Why is Python giving me a wrong answer?