Last active
April 1, 2018 13:14
-
-
Save shabbirbhimani/c6a551b3d2b7fa1fd9551bcc41ac0cd0 to your computer and use it in GitHub Desktop.
Relational Operators
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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