C-16-Q149mediumsingle_mcq
Which Python operator should we use to find whether a number is divisible by 2 (zero remainder)?
Which Python operator should we use to find whether a number is divisible by 2 (zero remainder)?
- a
/ - b
* - c
% - d
+
ব্যাখ্যা
The modulo operator % returns the remainder of a division, so number % 2 == 0 indicates the number is divisible by 2. A zero remainder confirms even divisibility.