Python 4.4 - Points to remember
Points to remember · Operators are symbols used to perform some operations on operands. For example, in statement z=x+y, ‘+’ and ‘=’ are operators and ‘x’, ‘y’ and ‘z’ are operands. Addition operator is used here to add two operands ‘x’ and ‘y’ and assignment ‘=’ operator is used to assign the result of addition to operand ‘z’. · Operators which operate upon single operand are called Unary operators such as unary ‘+’ and unary ‘-’. For example, -5, -6.8 · Operators which operate upon two operands are called Binary operators such as addition, subtraction etc. For example, 5+7, 45-23, x+y, x/y · Arithmetic operators perform mathematical calculations such as addition, subtraction, multiplication, division. Modulus, floor division and exponentiation. · Assignment operator ‘=’ is used to assign a value to the left side variable. · There are compound assignment operators such as ‘+=’, ‘-=’, ‘*=’, ‘/=’, ‘//=’, ‘%=’ and ‘**=’