Articles → Python → Comparison operator in python

Comparison operator in python






Comparison operators

















Example




a = 5
b = 6

#conditonal operators
print(a==b) # returns false
print(a!=b) # returns true
print(a>b) # returns false
print(a<b) # returns true
print(a>=b) # returns false
print(a<=b)# returns true





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Sunday, February 17, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250