From 9e922d72c45218f802384c486b7c96282be785f1 Mon Sep 17 00:00:00 2001 From: Polina Kirichenko Date: Tue, 11 Nov 2025 15:04:02 +0200 Subject: [PATCH 1/2] Fix Boolean operators task description --- Variables/Boolean operators/task.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Variables/Boolean operators/task.md b/Variables/Boolean operators/task.md index bfb6d58..9bd4f1a 100644 --- a/Variables/Boolean operators/task.md +++ b/Variables/Boolean operators/task.md @@ -1,12 +1,25 @@ ## Boolean operators Boolean is a type of value that can only be `True` or `False`. The `==` (equality) operator -compares two variables and checks whether they are equal. You will learn more about boolean operators in a later [task](course://Condition expressions/Boolean operators). +compares two variables and checks whether they are equal. Use `!=` (not equal) to check that two values differ. + +**Examples:** +```python +2 == 2 # 2 equals 2 → True +5 != 6 # 5 is not equal to 6 → True + +2 == 4 # 2 does not equal 4 → False +5 != 5 # 5 equals 5 → False +``` + +You will learn more about boolean operators in a later [task](course://Condition expressions/Boolean operators). For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/6025?utm_source=jba&utm_medium=jba_courses_links). ### Task - - Check whether the variable `two` is equal to `three`. +In this task, insert only these tokens where needed: `==`, `!=`, `True`, `False`. +The `is` operator checks if two objects are the same - for example, whether a variable is identical to `True` or `False`. + - Check whether the variable `two` is equal to `three`. This will create a Boolean result stored in `is_equal`. - Check if the variable `is_equal` has a deceiving name. - Check if the variable `is_false` does indeed contain a lie. From 0cd1fdc1b00f8ec8b563f1a766de2385bcd35361 Mon Sep 17 00:00:00 2001 From: Polina <72338385+polinak1r@users.noreply.github.com> Date: Thu, 13 Nov 2025 09:51:02 +0200 Subject: [PATCH 2/2] Fix punctuation and wording in task.md --- Variables/Boolean operators/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Variables/Boolean operators/task.md b/Variables/Boolean operators/task.md index 9bd4f1a..fbc1174 100644 --- a/Variables/Boolean operators/task.md +++ b/Variables/Boolean operators/task.md @@ -18,7 +18,7 @@ For more structured and detailed information, you can refer to [this Hyperskill ### Task In this task, insert only these tokens where needed: `==`, `!=`, `True`, `False`. -The `is` operator checks if two objects are the same - for example, whether a variable is identical to `True` or `False`. +The `is` operator checks if two objects are the same – for example, whether a variable is identical to `True` or `False`. - Check whether the variable `two` is equal to `three`. This will create a Boolean result stored in `is_equal`. - Check if the variable `is_equal` has a deceiving name. - Check if the variable `is_false` does indeed contain a lie.