+ 2

How to use % ???

I still confuse with this thing ....

24th Jul 2016, 9:16 AM
Stanley Anderson
Stanley Anderson - avatar
2 Respostas
+ 4
% is the modulo operator in python. Modulo calculates the remainder in a devision. For example is 14 % 3 = 2, since the closest (smaller) number from 14 that is devidable by 3 is 12. Thus you have a reminder of 14 - 12 = 2. In python the operator works syntactically like plus, minus or multiplication.
24th Jul 2016, 9:52 AM
Tor-Salve Dalsgaard
Tor-Salve Dalsgaard - avatar
0
Wew .... Thx Dudeee its very helping :)
24th Jul 2016, 2:38 PM
Stanley Anderson
Stanley Anderson - avatar