From ac5913c30338b944cbc8bbb05c405e7a42999eaa Mon Sep 17 00:00:00 2001 From: Anne Date: Sun, 8 Mar 2015 14:54:29 +0100 Subject: [PATCH] Added a description of the inequality operator. --- en/python_introduction/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/en/python_introduction/README.md b/en/python_introduction/README.md index 4d2adb899a0..64d2cd541d6 100644 --- a/en/python_introduction/README.md +++ b/en/python_introduction/README.md @@ -319,10 +319,12 @@ A big part of programming includes comparing things. What's the easiest thing to True >>> 1 == 1 True + >>> 5 != 2 + True We gave Python some numbers to compare. As you can see, Python can compare not only numbers, but it can also compare method results. Nice, huh? -Do you wonder why we put two equal signs `==` next to each other to compare if numbers are equal? We use a single `=` for assigning values to variables. You always, __always__ need to put two `==` if you want to check if things are equal to each other. +Do you wonder why we put two equal signs `==` next to each other to compare if numbers are equal? We use a single `=` for assigning values to variables. You always, __always__ need to put two `==` if you want to check if things are equal to each other. We can also state that things are unequal to each other. For that, we use the symbol `!=`, as shown in the example above. Give Python two more tasks: