+ 2

i have zero knowledge in python and i want to know what 6 % 4 equals and why?

21st Sep 2017, 9:47 PM
رائد محمد
رائد محمد - avatar
2 Respuestas
+ 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?
21st Sep 2017, 9:52 PM
Saka Oluwadamilola
Saka Oluwadamilola - avatar
+ 5
% operator ia found in MANY languages
21st Sep 2017, 10:21 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar