Skip to content

Commit 692ce04

Browse files
committed
add detail to what can be compared
1 parent 2ba9877 commit 692ce04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/python_introduction/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ True
464464
True
465465
```
466466

467-
We gave Python some numbers to compare. As you can see, not only can Python compare numbers, but it can also compare function results. Nice, huh?
467+
We gave Python some numbers to compare. As you can see, not only can Python compare numbers, but it can also compare values of mathematical expressions like `2 * 2` and function results like the `2` returned by `len([4, 5])`. Nice, huh?
468468

469469
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 of them – `==` – 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.
470470

0 commit comments

Comments
 (0)