Operators
*Types of Operators There are 7 python operators. Arithmetic Operators Comparison (Relational) Operators Assignment Operators Logical Operators Bitwise Operators Membership Operators Identity Operators ** Python Operators Precedence [more on operators] 1. Arithmetic Operators =>Types of arithmetic operators with description & example is tabulated below: Operator Description Example + Addition Addition of numbers. Simply adds numbers. 4+8=12 - Subtraction Subtracts right hand operand from left hand operand. 0 – 17 = -17 * Multiplication Multiplies values on either side of the operator 7 * 3 = 21 / Division Divides left hand operand by right hand operand 1/ 2= 0.5 % Modulus Divides left hand operand by right hand operand and returns remainder 5 % 2 = 1 ** Exponent Performs exponential (power) calculation on operators 10**2=100 // Floor Division - The division of operands whose result is the quotient in which the decimal point are removed(Numbers are
The information which you have provided in this blog is really useful to everyone. Thanks for sharing.
ReplyDeletePython Online Training in Hyderabad
Python Institute in Hyderabad
Python Course in Hyderabad
Very informative post.Check this Python Training institute.
ReplyDelete