Python LanguageComparisons


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