Kushal Das

FOSS and life. Kushal Das talks here.

kushal76uaid62oup5774umh654scnu5dwzh4u2534qxhcbi4wbab3ad.onion

Modulo operator in Python

Was looking into modulo (%) operator in python. Very basic example is 14 % 3 = 2 ,

but the result is different for negative values . -14 % 3 , 14 % -3. Can anyone please explain me how it works properly ? The closest answer I got is this.