More complex Arithmetic Operator
Python supports the ** operator which multiplies a number to the power of another. Example 1: >>> 2**4 #16 Example 2: >>>-3**4 #this is executed as -(3**4) The first expression executes as (2**4) and the second one as -(3**4). Even though the precedence of operator - and + is higher than that of the exponentiation operator **, the operator binds less tightly that the operator on its right and more tightly than the operator on its left. Thus the unary operator - of -3 is executed on the result of the expression 3**4. Python also supports the modula operator,%, which is used to return the integer remainder of a division sum. Here's this operator is in use: >>> 14%3 # 2 That's all for today. Try this at home and comment me how it was. Is it working or not? If any doubt comment me. It will surely be solved. Tommorrow you will get information about Execution order of Arithmetic Operators. Enjoy learning