Operators In Python | Python Tutorial For Beginners

Опубликовано: 04 Январь 2021
на канале: CODING BY AVNEET
65
10

Python Operators
Operators are used to perform operations on variables and values.
Example-
operator to add together two values.

Python divides the operators in the following groups:

Arithmetic operators
Assignment operators
Comparison operators
Logical operators
Identity operators
Membership operators
Bitwise operators

Operators in general are used to perform operations on values and variables in Python. 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.

Arithmetic operators: Arithmetic operators are used to perform mathematical operations like addition, subtraction, multiplication and division.
Operator Description Syntax
Addition: adds two operands x + y
Subtraction: subtracts two operands x - y
Multiplication: multiplies two operands x * y
/ Division (float): divides the first operand by the second x / y
// Division (floor): divides the first operand by the second x // y
% Modulus: returns the remainder when first operand is divided by the second x % y
** Power : Returns first raised to power second


На этой странице сайта вы можете посмотреть видео онлайн Operators In Python | Python Tutorial For Beginners длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CODING BY AVNEET 04 Январь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 65 раз и оно понравилось 10 зрителям. Приятного просмотра!