i have zero knowledge in python and i want to know what 6 % 4 equals and why? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antworten
+ 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