Page 94 - TP-Play_V-2.0_Book-6
P. 94
Program 4: To show all the relational operators’ functions
The result of the above program is:
PRECEDENCE OF OPERATORS
Precedence of operators determines the order in which the operators are executed. The operator
precedence in Python is listed in the given table. The highest precedence is at the top.
Operator Name
() Parentheses
** Exponent
*, /, %, // Multiplication, Division, Modulus, Floor Division
+, – Addition, Subtraction
==, !=, >, <, >=, <= Comparison
=, +=, -=, *=, /=, %=, **=, //= Assignment
and, or, not Logical
94 Play (Ver. 2.0)-VI

