Python lesson 3

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

Extension:

1 / 14
next
Slide 1: Open question
ComputingLower Secondary (Key Stage 3)

This lesson contains 14 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 50 min

Items in this lesson

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

Extension:

Slide 1 - Open question

Python lesson 3

Slide 2 - Slide

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

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

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

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

Slide 8 - Slide

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

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

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 - Drag question