Python lesson 3

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

Extension:

1 / 14
suivant
Slide 1: Question ouverte
ComputingLower Secondary (Key Stage 3)

Cette leçon contient 14 diapositives, avec quiz interactifs et diapositives de texte.

time-iconLa durée de la leçon est: 50 min

Éléments de cette leçon

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

Extension:

Slide 1 - Question ouverte

Python lesson 3

Slide 2 - Diapositive

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 - Diapositive

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 - Diapositive

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

Slide 5 - Quiz

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

Slide 6 - Diapositive

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 - Diapositive

Slide 8 - Diapositive

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 - Diapositive

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 - Diapositive

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

Slide 11 - Quiz

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 - Quiz

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 - Quiz

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 - Question de remorquage