Python lesson 3

Q1: What information can be stored inside a variable?
What symbol is used to create a comment?

Extension:

1 / 14
volgende
Slide 1: Open vraag
ComputingLower Secondary (Key Stage 3)

In deze les zitten 14 slides, met interactieve quizzen en tekstslides.

time-iconLesduur is: 50 min

Onderdelen in deze les

Q1: What information can be stored inside a variable?
What symbol is used to create a comment?

Extension:

Slide 1 - Open vraag

Python lesson 3

Slide 2 - Tekstslide

Lesson 3: Python programming
Conquer: Use selection (if statements) to control the flow of program execution between branches.


Aspire: Create a quiz with scoring system and or statements.

Slide 3 - Tekstslide

Python skills refresh (ISL) 
We always need to develop and work on our programming skills

Follow the instructions to complete the tasks
timer
4:00

Slide 4 - Tekstslide

What is the process of checking a program for errors?
A
Error checking
B
De-bugging
C
Error finding
D
Mistake finding

Slide 5 - Quizvraag

Selection
When your programs check conditions and select the path of action that they will follow accordingly.

Slide 6 - Tekstslide

Selection in Python: Greeting

print("What’s your name?")
user = input()
print("Hello", user)

 



We are going to extend this program to recognise one particular name and treat it differently.

Slide 7 - Tekstslide

Slide 8 - Tekstslide

If statements ISL task
  • We are now going to have a go at creating our own conditional statement.
  • The first one has been done for you, read the comments for help. 

timer
4:00

Slide 9 - Tekstslide

Testing our skills (ISL )
Now that we have created an example of a quiz question, we are going to create a 10 question multiple choice quiz.

The topic of the quiz can be your choice: EG capital cities.

timer
10:00

Slide 10 - Tekstslide

Code that only runs when a condition is met is known as coding in...
A
Sequence
B
Selection
C
Iteration
D
Recursion

Slide 11 - Quizvraag

What type of information can be stored in a variable?
A
Videos only
B
Sounds only
C
Pictures only
D
Numbers, text, and other types of data

Slide 12 - Quizvraag

What is a variable?
A
It allows you to enter information.
B
An error in your program.
C
A comment explaining your code.
D
A container that holds information.

Slide 13 - Quizvraag

CORRECT
CAUSE AN ERROR
print = ("Hello")
Print("Yes!")
print("this one)
name = imput("what is your name")
name = input("what is your name")
print("this text")
fav colour = "Green"
age = 10
print("Hello", name)
print("Bye",name")

Slide 14 - Sleepvraag