Operators in Python
Python has various operators for different operations:
- Arithmetic Operators: For mathematical operations like
+
,-
,*
,/
. - Comparison Operators: Used to compare values.
- Logical Operators: Combine multiple conditions.
- Assignment Operators: Assign values to variables.
For example: