Presentation is loading. Please wait.

Presentation is loading. Please wait.

Think What will be the output?

Similar presentations


Presentation on theme: "Think What will be the output?"— Presentation transcript:

1 Think What will be the output?
Please note the indentation. This will be important later. What will be the output?

2 Python: Iteration P107

3 Objectives identify and use variables, operators, inputs, outputs and assignments (b) understand and use the three basic programming constructs used to control the flow of a program: Sequence; Conditionals; Iteration (c) understand and use suitable loops including count and condition controlled loops

4 Iteration Another word for?
Allows us to execute the same lines of code a set number of time (count loops) or until a condition is met (condition controlled loops) Count loops use for Condition controlled loops use while Repetition

5 Example Count Controlled
Start Stop Step

6 Activity 1 – Count Controlled Loops
Read the following document, completing the exercises as you go. First week activity

7 Logical Operators

8 Example Conditioned Controlled

9 Activity 2 – Condition Controlled Loops
Read the following page 3 onwards of the worksheet, completing the exercises as you go. Second week activity?

10 Count controlled. Condition controlled.
Plenary What is iteration another word for? What were the two types of control statements? What type of statement is a for loop? A while loop? Repetition Count controlled. Condition controlled. Count controlled. Condition controlled.


Download ppt "Think What will be the output?"

Similar presentations


Ads by Google