0
22nd Jun 2016, 1:24 PM
anime king
anime king - avatar
3 Respostas
+ 5
% gives you the remainder when you divide two numbers. For eg :- if you divide 5 by 2 then you get 2 as a quotient and 1 as remainder. If you perform this Operation in python 5%2 then you will get 1 as your answer
22nd Jun 2016, 3:06 PM
Aditya Narania
Aditya Narania - avatar
+ 3
Modulo (%) separates and displays the residue of division. // counts how many times certain number fits into another and % checks what is left.
22nd Jun 2016, 1:52 PM
Marcin Filus
Marcin Filus - avatar
0
Thanks for explaining
10th Jun 2021, 8:42 PM
Adam Škeřík
Adam Škeřík - avatar