Python Tutorial
Python: Test Equality
By Xah Lee. Date:
2022-09-05
. Last updated:
2022-11-05
.
x
==
y
equal
x
!=
y
not equal
Object Identy Test
x
is
y
same object
[see
Python 3: Object, ID, Type
]
x
is not
y
not same object
Python: Operators
Arithmetic Operators
Assignment Operators
Bitwise Operators
if then else
True/False (boolean)
Boolean Operators
Test Equality
Test Order (Greater/Lesser)
Python
Search 🔍
Overview
Python 3
Python 2
Python 2 and 3 Difference
Python Source Code Encoding
Help
Print Version
Builtin Help
Comment
Comment
String
Quote String
String Escape
Unicode Escape
Print String
Print Without Newline
Convert to String
Format String
String Methods
Unicode 🐍
Arithmetic
Operators
Assignment Operators
Convert Int, Float, String
Complex Numbers
Boolean
True/False
Boolean Operators
Test Equality
Test Order (Greater/Lesser)
Conditional
If Else
Loop, Iteration
Loop
Data Structure
List
Generate List
List Methods
Enumerate List
Map/Filter List
Iterator to List
Copy Nested List
Sort
Dictionary
Loop Thru Dict
Dict Methods
Tuple
Sets
Sequence Types
JSON
Function and Class
Function
Closure
2 Closure
Decorator
Class
Object, ID, Type
Module
Import Module
Show Module Doc
List Module's Functions
List Modules
Module Search Paths
How to Write a Module
Misc
Datetime
Timing/Speed
Regex
Regex
Regex Reference
Text Processing
Read File
Write File
Walk Directory
File Path
Find Replace in dir
Find Replace by Regex
Get Unicode Name, Codepoint
Convert File Encoding
Count Word Frequency
Web
Send Email
GET Web Page
Web Crawler
HTTP POST
Misc
Auto Format Code
Find Script Path
Get Env Var
System Call
Decompress Gzip
Timing Function
Transpose Matrix
Check Page Load Size
Thumbnail Generation