-->

Encrypting your link and protect the link from viruses, malware, thief, etc! Made your link safe to visit.

Boolean expression and Comparison Operators



Boolean expression:

A Boolean expression is an expression that is either true or false.
       One way to write a Boolean expression is to use the operator ==, which compares two values and produces a Boolean value:
     >>> 5 == 5
         True
         >>> 5 == 6
         False
True and False are special values that are built into Python.



Comparison Operators:
       x != y                                                                                             # x is not equal to y
       x > y                                                                                       
                    # x is greater than y
       x < y                                                                                                            # x is less than y
       x >= y                                                                                             # x is greater than or equal to y
       x <= y                                                                                             # x is less than or equal to y
NOTE: “= is an assignment operator and == is a comparison operator”. Also, there is no such thing as =< or =>.


ST

Social

Recent

⬇⬇Get Your Link⬇⬇