TEB Computer Kids Academy

About us  Contact  post comment    TEB Computer Academy

TEB   Computer   Kids  Academy

                          

Download/Scan TEB APP/Barcode - free download





Python Operators





Arithmetic Operators
Python includes the following arithmetic operators:


For example, the plus-sign (+) adds the number on its right with the number on its left.




Comparison Operators
Python includes also the following comparison operators:



It could be called relational operators, comparison operators allow you to compare two objects.

Thecomparison operator returns a boolean value of either True or False.
The objects to be compared don't need to have the same type.
We have an example of using the == operator.
This returns True if both operands are exactly equal, otherwise it returns False.



Logical Operators

Python also includes the following logical operators: