Skip to content

# Python Operator

## Python XOR operator | Code

In Python, XOR is a bitwise operator that is also known as Exclusive OR. The symbol for XOR in Python is ‘^’ and in mathematics,… Read More »Python XOR operator | Code

## Assignment operators in Python

Python Assignment Operators are used to assign values to variables. The assignment operator is represented as the “=” symbol used in assignment statements and assignment… Read More »Assignment operators in Python

## Identity operators in Python

Python Identity operators are used to compare the objects if both the objects are actually of the same data type and share the same memory… Read More »Identity operators in Python

## Python bitwise operators

Python Bitwise operators are used to compare (binary) numbers. Python’s bitwise operators only work with integers. Operator Meaning Example Description & Bitwise AND x &… Read More »Python bitwise operators

## Logical operators in Python

Python Logical operators are used to combine conditional statements. Python has three Logical operators the and, or, not operators. Operator Meaning Example and True if… Read More »Logical operators in Python

## Python in operator

Python in the operator is used to check if a value exists in a group of values (string, list, tuple, etc). The in operator returns… Read More »Python in operator

## Concatenation Operator in Python

Python Concatenation Operator joins the two different strings (or other types of data) together. The + symbol is used as a concatenation operator in Python.… Read More »Concatenation Operator in Python

## Python import operator

The Python operator module is one of the inbuilt modules in Python. By import operator, you can perform various operations and operate two input numbers… Read More »Python import operator

## Python operator overloading

Python operator overloading allows a single operator to perform more than one operation based on the class (type) of operands. For example, operator + is… Read More »Python operator overloading

## Python set union operator | Example code

Python set union operator returns a set that contains all items from the original set and all items from the specified set. The set union… Read More »Python set union operator | Example code