InterviewSolution
Saved Bookmarks
| 1. |
Python Arithmetic Operators |
||||||||||||||||||||||||||||
|
Answer» The Arithmetic Operators in the below table are in Lowest to Highest precedence.
Some examples are shown below: #Example for Addition>>> 1 + 3 4 #Example for Subtraction >>> 1 - 3 -2 #Example for Multiplication >>> 6 * 6 36 #Example for Floored Division >>> 4 // 2 2 #Example for Division >>> 3 / 2 1.5000 #Example for Modulo >>> 3 % 2 1 |
|||||||||||||||||||||||||||||