0
What does % mean
5 Réponses
+ 5
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2273/
This is the lesson that explains that. For a little more explanation:
% ignores the number of times and only give you the remainder. For example:
20%6= 2
Because:20= 3*6+2
(20/6= 3 3*6= 18 20-18=2)
Hope this helps.
( If i haven't been so clear of course you are welcome to ask me something more)
0
a % b = a - (a // b) * b
0
thankyou
0
It gives you the remainder
0
Example 20%3=2