Python Session Overview
Sakshi Agrawal
immediate joiner | Backend Developer | Java |Spring Boot|Microservices|Hibernate|Jenkins|Bitbuket|Kubernetes|kafka|Putty|Cassandra|Software Engineer
Hello to all my Reader
As you see my daily updates regarding my new work as a?Python faculty in CCCGadarwara?[Christ Church Convent Gadarwara]?. Below I am sharing the day Three detail and workshop complete update. Please have a glance on it Hope you all might be benefited through it.
Day 3 [4/May/2022]
In this session we have discuss the operators in python
Operators
The operator can be defined as a symbol which is responsible for a particular operation between two operands. Operators are the pillars of a program on which the logic is built in a specific programming language. Python provides a variety of operators, which are described as follows.
Arithmetic Operators
Arithmetic operators are used to perform arithmetic operations between two operands. It includes + (addition), - (subtraction), *(multiplication), /(divide), %(reminder), //(floor division), and exponent (**) operators.
Consider the following table for a detailed explanation of arithmetic operators.
Comparison operator
Comparison operators are used to comparing the value of the two operands and returns Boolean true or false accordingly. The comparison operators are described in the following table.
Assignment Operators
The assignment operators are used to assign the value of the right expression to the left operand. The assignment operators are described in the following table.
领英推荐
Bitwise Operators
The bitwise operators perform bit by bit operation on the values of the two operands.
Logical Operators
The logical operators are used primarily in the expression evaluation to make a decision. Python supports the following logical operators.
Membership Operators
Python membership operators are used to check the membership of value inside a Python data structure. If the value is present in the data structure, then the resulting value is true otherwise it returns false.
Identity Operators
The identity operators are used to decide whether an element certain class or type.
Operator Precedence
The precedence of the operators is essential to find out since it enables us to know which operator should be evaluated first. The precedence table of the operators in Python is given below.
Thanks for Reading!
Published by: Sakshi Agrawal
Date:11/May/2022