0
how does % work
3 Answers
+ 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
+ 3
Modulo (%) separates and displays the residue of division. // counts how many times certain number fits into another and % checks what is left.
0
Thanks for explaining