0% found this document useful (0 votes)
6 views12 pages

Lesson 1 - HL Vs Block and Variables 2

Lesson 1 -HL vs Block and Variables 2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views12 pages

Lesson 1 - HL Vs Block and Variables 2

Lesson 1 -HL vs Block and Variables 2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Python Programming:

High Level vs Block


Based
KS3 – TERM 3
Learning Journey​​ Knowledge Objective:
First Steps

The Bigger Picture:​​ In this lesson, we will take our first footsteps
into understanding computer programming.
We will look at how computers need precise
instructions to execute Python Programming.

The Big Question​​: Can a computer do the job of a musician?​

No Excuse Vocabulary​​: Algorithms, Python, Sequence


In this lesson you will:

Define the High-level programming

Discover what variables and operators are

Write your first Python Programs


YOU DO: The robot and the computer
programmer

Task 1:
In your books:

Draw a route from where you


are now to another room in the
school.

Write down a list of instructions


that you could give to a robot
that would get from A to B.
YOU DO: Reflect

Do instructions given to
computers instead of humans
need to be:
 More
Moreprecise
 As
precise
precise
 Less precise
We Do: High Level vs Block Based

High Level Programming: Is text-based programming that allows programmers


to tell the computer instructions.
Advantages: Disadvantages:
• Faster to program • Hard to learn
• Can program complicated • Can make simple
programs syntax errors
• Most development done in • Harder to debug
high level

Block Based: Programming by drag and dropping blocks into the program
Advantages: Disadvantages:
• Easy to learn – ( good for
• Limited to how
starters)
• Can program basic games advanced the
• Not many errors to fix program is
• Slower to compute
WE DO: Variables and Assignment
in Python

Variables are used to store information to be referenced and manipulated in a


computer program.

Variable Identifier
Value
user = "Claude"
Assignment

print("Hello", user)
You Do: Extending the Program

https://www.online-python.com/

Complete line 4, so that the output of the program is:

Hello Claude

My lucky number is 13

Make sure that your program displays the value of the lucky
1 user
variable, not =
just"Claude"
the number 13.

2 print("Hello", user)
3 lucky = 13
4 print( )
You Do: Make a program

Make a program that stores username, password, age (of your


choice)
Make a print statement that displays all of them in the program:

First line is done for you

1 username = “F4L4F3l“
2
3
4
You Do: Extending the Program

A. Change your program so that it now looks like this example..

1 print("What’s your name?")


2 user = input()
3 print("Hello", user)
We Do: Using Input

https://www.online-python.com/
print("What’s your name?") You will need the input function:
when your program must receive keyboard

user = input() input from the user.

print("Hello", user) When input is invoked, the program pauses, waiting for
keyboard input.

The text typed by the user is assigned to the user


Extend the program to ask 4 more other questions
variable.
Such as “What is your age”
We can refer to the value of user in the program without
knowing what it will be.
Plenary:

Open Teams and


complete Exit Quiz.

You might also like