Posts

Showing posts from August, 2022

Python Operators:

Image
Python Operators   in general are used to perform operations on values and variables. These are standard symbols used for the purpose of logical and arithmetic operations. In this article, we will look into different types of Python operators.  OPERATORS: These are special symbols. Eg- + , * , /, etc. OPERAND: It is the value on which the operator is applied Python divides the operators into the following groups. Arithmetic Operators. Assignment Operators. Comparison Operators. Logical Operators. Identity Operators. Membership Operators. Bitwise operator. Arithmetic operators are used for arithmetic operations on numeric values, like addition, subtraction, multiplication, and division(integer or floor) to perform mathematical operations. Addition: This is used to add two operands. For example, x and y are two operands, and + is an operator to perform an addition between x and y. Thus x = 55 y =35 print(x+y) Subtraction: x=50 y=20 print(x - y) Multiplication:  x =12 y =5 print(x*y) the