File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -659,10 +659,12 @@ More on Conditions
659
659
The conditions used in ``while `` and ``if `` statements can contain any
660
660
operators, not just comparisons.
661
661
662
- The comparison operators ``in `` and ``not in `` check whether a value occurs
663
- (does not occur) in a sequence. The operators ``is `` and ``is not `` compare
664
- whether two objects are really the same object. All comparison operators have
665
- the same priority, which is lower than that of all numerical operators.
662
+
663
+ The comparison operators ``in `` and ``not in `` are membership tests that
664
+ determine whether a value is in (or not in) a container. The operators ``is ``
665
+ and ``is not `` compare whether two objects are really the same object. All
666
+ comparison operators have the same priority, which is lower than that of all
667
+ numerical operators.
666
668
667
669
Comparisons can be chained. For example, ``a < b == c `` tests whether ``a `` is
668
670
less than ``b `` and moreover ``b `` equals ``c ``.
You can’t perform that action at this time.
0 commit comments