+ 2
i have zero knowledge in python and i want to know what 6 % 4 equals and why?
2 Réponses
+ 6
The modulo operator (%) returns the "remainder" of the division of two numbers. 6 divides by 4 once, leaving 2 as remainder. Therefore, 6%4 returns 2! Hope this helps?
+ 5
% operator ia found in MANY languages