Posts

Showing posts with the label logical operator

Topic4:- Operators in Python

Image
What are Operators in Python Operators are symbols or special characters that perform operations on variables and values . For example: a = 15 b = 5 print(a + b) # Output: 120 Here, + is an operator that adds two numbers. Python Operators Types of Basic Operators in Python Python operators are broadly classified as: Arithmetic Operators Comparison (Relational) Operators Logical Operators Assignment Operators Bitwise Operators Membership Operators Identity Operators 1️⃣ Arithmetic Operators Used for mathematical operations. Operator Description    Example        Output +            Addition 10 + 5        15 -           Subtraction 10 - 5        5 *          Multiplication 10 * 5        50 /          Division 10 / 5   ...