0

What '%' symbol mean in python?

4th Sep 2016, 7:47 AM
jishnu gera
7 Respostas
+ 3
It is known as "Modulo " operator, it gives us the remainder of a particular formula . example- 5% 2 results in 1.
4th Sep 2016, 10:46 AM
Ayush Agarwal
Ayush Agarwal - avatar
+ 2
5 % 2 = 1 5 // 2 = 4
4th Sep 2016, 8:44 AM
Ришат Султанов
Ришат Султанов - avatar
+ 2
yes
4th Sep 2016, 8:56 AM
Ришат Султанов
Ришат Султанов - avatar
+ 1
mod is operation finds the remainder after division example 7%2 , the result of division is 7/2 = 3 and the remainder is 1 so 7%2 = 1
4th Sep 2016, 12:09 PM
beauty1234
0
% is mod
4th Sep 2016, 7:57 AM
Ahmad Ghozali
Ahmad Ghozali - avatar
0
is it means remainder in division??
4th Sep 2016, 8:52 AM
jishnu gera
0
Think of 5%2 as =what is the remainder of 5/2. 5/2=2 remainder=1 5%2=1
10th Sep 2016, 5:15 PM
Randy