Comp
Comp
4 Conditional 1. If statement
statements 2. if - else statement
3. If-elif-else statement
4. nested -if statement
8 Nested if-elif-else ● Allows to check multiple test expressions and different codes for
more that two conditions
● We can have if-elif-else statement inside another if-else statement
9 Iteration ● Repetition of a set of statement
● A loop statement allows us to execute a statement or group of
statements multiple times
10 Types of loops 1. For loop - definite loops (stmnt executed for a definite no of times)
2. While loop - indefinite loop
15 Break statement ● Terminates the current loop and resume execution at the next
statement immediately after the end of the loop
16 Continue statement ● When encountered jumps to the beginning of the loop for next
iteration
● skips the execution of statements inside the body of the loop
17 Pass statement ● When a statement is required syntacticallyBut you do not want any
comment or code to execute