+ 1

Please what does this sign mean

%

11th Jul 2020, 5:14 PM
Ultra WALKER
Ultra WALKER - avatar
3 ответов
+ 3
modulo or % is cool :) what it does is return (give you) a number that is left after division of two numbers. all whole numbers 9 % 3 = 0 because 9/3 = 3 and there is nothing left 9 % 4 = 1 because 9/4 = 2 with 1 left 10 % 4 = 2 because 4 fits fully in 10 but you are left with 2 15 % 4 = 3 4 fits in 15 3 times, but you then have 3 left (which is modulo)
11th Jul 2020, 5:21 PM
Brave Tea
Brave Tea - avatar
+ 3
Tindan Sandow First of all you must know what this operator do. % is an binary operator which means that it can be applied only if there are two values that is it can't be used with a single value. Moreover this operator is called 'modulo' operator in python and returns the remainder we get after the division of those two numbers we used with this operator Now suppose we have given 4%3 It just return the value we get as remainder after dividing 4 by 3. So 4%3 will return the value 1. I hope you understand. If there is still any querry then mention me with that querry. Thank you.
11th Jul 2020, 5:24 PM
Akshay Panwar
Akshay Panwar - avatar
+ 2
It's called modulo , It is used to get the remainder of a division operation. For example: 3%2 = 1
12th Jul 2020, 10:25 PM
𝕱𝖗𝖆𝖓𝖐𝖞
𝕱𝖗𝖆𝖓𝖐𝖞 - avatar