Our Office
Ernakulam, Kottayam
Email Us
linusfacts@gmail.com
Call Us
+91 9544409513
What does the not operator do in Python? If C1 is True and C2 is False, what will be the result of the following conditions?<br>1. C1 and C2<br>2. C1 or C2<br>3. C1 ^ C2<br>4. not C1

QUESTIONS

What does the not operator do in Python?

Right Answer:

The not operator negates the result of the condition it precedes. If the condition is True, not makes it False, and if it’s False, not makes it True.

If C1 is True and C2 is False, what will be the result of the following conditions?
1. C1 and C2
2. C1 or C2
3. C1 ^ C2
4. not C1

Right Answer:

1.C1 and C2 will be False because both conditions are not true.
2. C1 or C2 will be True because at least one condition (C1) is true.
3. C1 ^ C2 will be True because only one of the conditions is true.
4. not C1 will be False because not negates True to False.

Get In Touch

Kochi, Pala,Ernakulam

+91 9544409513

linuslearning.in@gmail.com

Our Courses
Newsletter

Those people who develop the ability to continuously acquire new and better forms of knowledge that they can apply to their work and to their lives will be the movers and shakers in our society for the indefinite future