0

What does % mean

12th Dec 2019, 5:01 PM
___Eli__
___Eli__ - avatar
5 Respuestas
+ 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)
12th Dec 2019, 5:10 PM
Elen V
Elen V - avatar
0
a % b = a - (a // b) * b
12th Dec 2019, 5:28 PM
Seb TheS
Seb TheS - avatar
0
thankyou
12th Dec 2019, 6:55 PM
___Eli__
___Eli__ - avatar
0
It gives you the remainder
14th Dec 2019, 2:47 PM
Ritika Yachna
Ritika Yachna - avatar
0
Example 20%3=2
14th Dec 2019, 2:47 PM
Ritika Yachna
Ritika Yachna - avatar