RUVIDEO
Поделитесь видео 🙏

Operators in Python смотреть онлайн

Hello, dear friends, in this lesson, we will learn operators as a concept in Python.


so let's start.
So what does this mean?


Operators?


Well, basically operators are the constructs which can manipulate the value of operations.


OK, you already knew that.


But how do they do that?


Let's have a look.


For example, we have two values and we want to right this expression, right, four plus five.


So here four and five are called operands and the plus side is called the operator.


So let's continue.


Python is a language supports some types of operators, and a few of those are.


Arithmetic operators, also known as math operators, comparison operators also known as relational
operators, assignment operators.


Logical operators, these are the most commonly used operators in Python.


So now let's let's examine all of this one by one.
so we're going to start with arithmetic operators, so these are actually simple math operators like
addition, subtraction, multiplication, division, exponents, all those.


So let's see them in an example.


If we define two variables named A and B, and the values are nine and 15.


And now we can use math operators one by one.


A plus B and the result is 24.


B minus a result is six.


A divided by B result is zero point six, so in this process, we divided the B into the A and Python


returns the result.


Be modulo a the result is six.


So in this process, we divided B into A and Python returns as the remainder.


This process is called Modulus B exponent to.


The result is 225, so in this process, we find the second power of 15, so, see, those are the basic


math operators in Python.


So now let's continue with comparison operators.

These operators compare the values on either side of them and then decide the relation between them,


but how?
We're going to check it out.


But first, we do need to know a little bit about Boolean values in Python.


What are boolean values?
OK, there are logical values were more commonly known Boolean values are actually a data type in Python


and they have two different values, true and false.


All right.


So how does that work?


Let's look at a couple of examples.


So let's create a variable named A. and let it be true.


And let's look at its type, so as you can see, that type is Class Boulle now create another variable


name to be and let it be false.


So let's look at this one time and also this one's type is Class Boulle.
So we will often use these variables when we create a condition.
Now, let's continue with comparison operators and check out how to use it.


So there are six different comparison operators in Python.


Here's one example.


Let's take our last variables again.

A equals B, the result is false.
The eagle operator is checking both values, and if they are equal, then the result would be true or
else the result is false.
A, not equal B.


And the result is true, the not equal operator is checking both values, and if they're not equal,


then the result is true or else the result would be false.


A less than B.


The result is true because A is indeed less than B.


A is greater than B.
And the result is false because he is less than be.


A less than equals B.


And the result is true, the less than equal operator is checking both sides, and if the operand is


less than or equal to the right operand, then the condition becomes true or else the condition is false.


A greater than equal be.


The result is false, the greater than equal operator is checking both sides if the left upper end is


greater than or equal to the right operation, then the condition becomes true or else the condition


is false.


So do you see how the comparison operators work in Python?

Cool.


So let's continue with assignment operators.


Assignment operators are using Python to assign values to variables, as you may remember, when we


define a variable like A equals nine, A is the variable name nine is the variables value and the equals.


Mark is the assignment operator and of course, there are many more of them.


I'll give you a few examples.
So we define a variable named sea and its value is one.


So now when we type C plus equals one, the result is two.


Plus, equal market means that it adds the right operand to the left operand and assigns the result


to the left operand.


Now, what if we type?


C minus equals two, the result is zero.
The minus, Cormark, means it adds the right operand to the left operand and assigns the result to
the left operand.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Operators in Python» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.