Professional Documents
Culture Documents
conditional statement
Program Control Flow
• A program’s control flow is the order in which the
program’s code executes. A flow control statement
defines the flow of the execution of the program.
Control flow statement are required to alter the
flow of program execution based on the
conditions.
• It is classified into three categories.
2.Selection/
1.Sequence 3.looping
Decision
Sequence
•Sequential statement in the program are
executed in a sequential order or in a
linear fashion , one after another ,
without any jump. Statement 1
executed in
sequence , one Statement 3
after another
Selection Condition
• These statement in a program are execute when the program
uses a condition to decide which set of statement is to be
executed b/w two alternative sets of statement.
• In conditional statement ‘if’ statements are used.
making
statement
Decision making
• Decision making statement are used to control the
flow of execution of a program depending upon
the condition.
• There four types of decision-making statements in
python: 1.If statement
2.If-else statement
3.if-elif ladder
Disclaimer
created with the help of google and the picture are taken from google image.