ScanSkill

== (is equal)

This == (is equal) relational operator returns a Boolean value stating whether two expressions are equal.

Syntax

A == B

Here,

  • A: Any valid object.
  • B: Any valid object.

Examples

>>> 'ABC' == 'ABC'
True
>>> 1 == 1
True
>>> 1 == 1.0
True
>>> {1: None, 2: None} == 10
False
>>> a = 1
>>> b = 1
>>> a == b
True