Which of the following is a logical operator in Python?
-
A
+
-
B
and
Correct answer
-
C
%
-
D
=
12 views
Explanation
and, or, and not are logical operators. + and % are arithmetic, and = is assignment.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ