Python: Test Equality

By Xah Lee. Date: . Last updated: .
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

Python

Overview

Help

Comment

String

Arithmetic

Boolean

Conditional

Loop

Data Structure

Function and Class

Module

Misc

Regex

Text Processing

Web

Misc