Name | == (equality) |
||||
---|---|---|---|---|---|
Examples |
a = 23 b = 23 if a == b: print("variables a and b are equal") | ||||
Description |
Determines if two values are equivalent. The equality operator is different from the assignment operator. |
||||
Syntax | value1 == value2 | ||||
Parameters |
| ||||
Related |
> (greater than) < (less than) >= (greater than or equal to) <= (less than or equal to) != (inequality) |
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License