Python Data Types Boolean
Boolean
In programming We should know if the given statements True or False. so we evaluate the statements in Python and get True or False.
whenever we compare two or more value or expression ,and Python will return Boolean value (True or False)
![]() |
In the above code we can see that if the given condition (x>y) is True then it will print ("x is greater than y") else it will print ("y is greater than x")
Comments
Post a Comment