HLEI (OPC) PRIVATE LIMITED
PYTHON –
JOB READY
PRESENTED BY
CLASS-04 DEVENDER SINGH
HLEI (OPC) PRIVATE LIMITED
1. WEEK
1 Introduction 4 Operators
2 Data Type 5 Loops
3 String and String methods 6 Number Methods/math
module
Assessment- 1
Operators
Operators are used for perform operation between two values
HLEI (OPC) PRIVATE LIMITED
Operators are
• Arithmetic operator
• Assignment operator
• Comparison operator
• Logical operator
• Identity operator
• Bitwise Operator
• Membership operator
HLEI (OPC) PRIVATE LIMITED
Assignment operator
Operator Symbol
= a=b
+= a+=b a=a+b
-= a- = B a=a-b
*= a*=B a=a*b
HLEI (OPC) PRIVATE LIMITED
Comparison Operator
Operator Name Symbol
== Equal A==B
!= Not equal A!=B
< Less than A<B
> Greater than A>B
<= Less than equal to A<=B
>= Greater than equal to A>=B
HLEI (OPC) PRIVATE LIMITED
Logical Operators
Name Operator
And and
Or or
Not not
HLEI (OPC) PRIVATE LIMITED
Identity Operator
.
is Is not
HLEI (OPC) PRIVATE LIMITED
Bitwise Operator
Name Operator Symbol
Bitwise OR & A&b
Bitwise And | A|b
Bitwise Not ~ ~A
Bitwise XOR ^ A^b
Zero fill left shift << A<<b
Zero fill right shift >> A>>b
HLEI (OPC) PRIVATE LIMITED
Membership operator
Operator
In A in b
Not in A not in b
HLEI (OPC) PRIVATE LIMITED
Condition
Conditional Statements are statements in Python that provide a choice for
the control flow based on a condition. It means that the control flow of
the Python program will be decided based on the outcome of the
condition.
HLEI (OPC) PRIVATE LIMITED
Condition
Python nested
if statement
If
If else If else ladder
HLEI (OPC) PRIVATE LIMITED
ANY QUERY