Lesson 3

Lesson 3 - Python
Year 7 
1 / 21
volgende
Slide 1: Tekstslide
ComputingLower Secondary (Key Stage 3)

In deze les zitten 21 slides, met interactieve quizzen, tekstslides en 2 videos.

time-iconLesduur is: 50 min

Onderdelen in deze les

Lesson 3 - Python
Year 7 

Slide 1 - Tekstslide

What is Python?

Slide 2 - Open vraag

What does a 'print' statement do in Python?
A
Stops the program
B
Displays output on the screen
C
Saves data to a file
D
Deletes code

Slide 3 - Quizvraag

What is a variable in Python?
A
A function in Python.
B
A loop in Python.
C
A named container for storing data.
D
An if statement in Python.

Slide 4 - Quizvraag

What is a variable in programming?
A
An input device.
B
A type of function.
C
A type of loop structure.
D
A container for storing a value.

Slide 5 - Quizvraag

Can you...
Write a print statement saying "Garibaldi is amazing"?

Slide 6 - Tekstslide

Slide 7 - Video

What is a condition?

Slide 8 - Open vraag

 Condition
In Python, a condition is a statement that can be seen as either True or False.

Slide 9 - Tekstslide

Slide 10 - Video

Recap: Operators
The below are essential when programming...

Slide 11 - Tekstslide

if, else - Example Program 

Slide 12 - Tekstslide

if, else - Program Flowchart

Slide 13 - Tekstslide

Let's take a look at the actual program...

Slide 14 - Tekstslide

Making your own... 

Using the template above, can you 'Tweak' it? To make the below program.

The legal age to drive a car is 17 Years old.

If you can't drive, the code must print "You are not old enough to drive", 

If you can drive the code must print "You are old enough to drive".

Slide 15 - Tekstslide

Driving Age: Solution

Slide 16 - Tekstslide

if, else, elif - Example Program

Slide 17 - Tekstslide

if, elif, else Statements

Slide 18 - Tekstslide

if, elif, else Statements 

Slide 19 - Tekstslide

How if, elif and else statements can be used

Slide 20 - Tekstslide

What are conditional statements used for?
A
Breaking the code
B
Printing out all possible options
C
Making decisions based on certain conditions
D
Making the code run faster

Slide 21 - Quizvraag