Core Python Advanced Python By Venkatesh Mansani venkatesh.mansani@yahoo.com
Control Flow Statements are divided into three categories in Python: 1) Decision Making Statements 2) Iteration Statements(Loops) 3) Jump Statements 1) Decision Making Statements: Decision making statements contain conditions. If the condition is true then a set of statements executed and if the condition is false then another set of statements are executed. Decision making statements are also called selection statements. i) if Statement ii) if else Statement iii) if elif ....... else Statement iv) Nested if Statement 2) Iteration Statements(Loops): A set of statements executed repeatedly until the condition becomes false is called as iterative statement or loop. i) while loop ii) while loop with else block iii) for loop iv) for loop with else block v) Nested loops 3) Jump Statements: Jump statements are used to terminate the loop or to skip the part of a loop. i) break Statement ii) continue Statement iii) pass Statement Assignment4: ...