Wednesday, 1 March 2017

Python 3 Relational Operators

Python 3 Relational Operators

Below code represents as an example for Relational Operators in Python

'''Relational Operation'''
test = 100
print (test == 100)  #True
print (test == 50)   #False
print (test != 100)  #False
print (test !=50)    #True
print (test < 200)   #True
print (test > 200)   #False

No comments:

Post a Comment