Assignment Operator
Assignment operators are used to assign values to variables.
There are 5 types of assignments operators
Relational operator tests numerical equalities and inequalities between two operands and returns a boolean value
All operators have same precedence
So now, we will create two variables x and y with values 5 and 7 respectively and test the operators on them.
Logical Operators are used when operands are conditional statements and it returns boolean value.
In python, logical operators are designed to work with scalars or boolean values.
0 Comments:
Post a Comment