Python
Operator Precedence and Comments
Operator Precedence
Saravanakumar,AP/CSE 2
Example 1: 5+2*4
Operator Precedence
Saravanakumar,AP/CSE 3
Example 2: 34 + 12 / 4 - 45 Example 3: 12 + 3 - 4 / 2 < 3 + 1
Comments
Saravanakumar,AP/CSE 4
• Comments provide a way to leave an explanation or annotation in your source
code to the Programmer , not executed by Interpreter.
# Single - line Comment
‘‘‘Multi – line Comment’’’
“““Documentation String (DocString) Comment”””
Saravanakumar,AP/CSE 5

Python operator precedence and comments