What is Operator?
- Operators in Python are symbols used to perform operations on variables and values.
- They allow you to manipulate data and variables.
Types of Operators in Python:
1 . Arithmetic Operators : Perform mathematical operations.
Program with output :
2. Comparison Operators : Compare values and return a boolean result.
Program with output :
3. Logical Operators : Perform logical operations (AND, OR, NOT).
Program with output :
4. Assignment Operators : Assign values to variables.
7. Membership Operators : Test membership in a sequence.
Example with output :
0 Comments