Skip to content

Instantly share code, notes, and snippets.

@shabbirbhimani
Last active April 1, 2018 13:14
Show Gist options
  • Save shabbirbhimani/c6a551b3d2b7fa1fd9551bcc41ac0cd0 to your computer and use it in GitHub Desktop.
Save shabbirbhimani/c6a551b3d2b7fa1fd9551bcc41ac0cd0 to your computer and use it in GitHub Desktop.
Relational Operators
# lets declare a variable, variable1 with value 100
variable1 = 100
print("Value of variable1 is", variable1)
# performing equality
EqualityOutput = variable1 == 100
print("is variable1 == 100", EqualityOutput)
# result: is variable1 == 100 True
# performing not equal to
output = variable1 !=100
print("is variable1 != 100", output)
# result: is variable1 != 100 False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment