From 4c6e8c0be2599d92730109d05c78dad287f00ca6 Mon Sep 17 00:00:00 2001 From: Pratham1812 <32198580+Pratham1812@users.noreply.github.com> Date: Sat, 20 Oct 2018 09:40:06 -0700 Subject: [PATCH] Added use of 'or' (#21675) --- guide/english/python/comparisons/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/python/comparisons/index.md b/guide/english/python/comparisons/index.md index 2922d4dbe8..52353298d4 100644 --- a/guide/english/python/comparisons/index.md +++ b/guide/english/python/comparisons/index.md @@ -5,6 +5,8 @@ title: Python Comparisons There are eight comparison operations in Python. They all have the same priority (which is higher than that of the Boolean operations). Comparisons can be chained arbitrarily; for example, `x < y <= z` is equivalent to `x < y and y <= z`, except that `y` is evaluated only once (but in both cases `z` is not evaluated at all when `x < y` is found to be false). +You can also give two condition and check for only one condition using 'or' like 'x > y or x >= y' will check for either of the two conditions. If one of the condition is true the programme will proceed. This is the functionality of 'or' + This table summarizes the comparison operations: Operation | Meaning