Page 135 - TP_Plus_v4_Class6
P. 135
Program 4: To show all the relational operators’ functions
The result of the above program is:
Interdisciplinary Learning
#Mathematics
Write a program in Python to calculate the area of a square.
#Lab Activity
PRECEDENCE OF OPERATORS
Precedence of operators determines the order in which the operators are executed. When multiple
operators are present in an expression, the ones with higher precedence are evaluated first. The
operator precedence in Python is listed in the given table.
The following table shows the precedence of operators in Python. The highest precedence is at the top.
Operator Name
() Parenthesis
** Exponent
*, /, %, // Multiplication, Division, Modulo, Floor Division
+, – Addition, Subtraction
#Python 133

