Stats

102 Contributors: 9
2016-08-03
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Comparisons

Download python eBook

Syntax

  • != - Is not equal to

  • == - Is equal to

  • > - greater than

  • < - less than

  • >= - greater than or equal to

  • <= - less than or equal to

  • is - test if objects are the exact same object

  • is not = test if objects are not the exact same object

Parameters

ParameterDetails
xFirst item to be compared
ySecond item to be compared

Related Examples