Search Header Logo
Y9 Python L1

Y9 Python L1

Assessment

Presentation

Computers

10th Grade

Practice Problem

Medium

Created by

Roy Duguid

Used 23+ times

FREE Resource

36 Slides • 4 Questions

1

​Do Now:

​ 1. Log in

  1. Go to Class Notebook

  2. Go to Spring Term - L1 Introduction to Python 

  3. Complete Do Now

2

​What is programming?​ Why is it important?​ What does the word print mean to you?​ What does the word input mean to you?

3

1.What is programming? Programming is the process of creating a set of instructions that tell a computer how to perform a task.

2.Why is it important? Computer programming is important today because so much of our world is automated. Humans need to be
able to control the interaction between people and machines

3.What does the word print mean to you? Print means to make something appear. In this case, prints the
specified message to the screen.

4.What does the word input mean to you? To put something into something. In this case, allows a user to insert a value
into a program

4

​Extra Challenge: Write down what you think some code would look like to display your name:

5

Big Question

What is Python?
Understand how to print strings and integers using python code
Understand how to spot errors when using print statements?
How can create my own programs using the print function in python?

Extra Challenges:

To understand what a variable is.

Key Words: String, Integer, Real, Boolean, Syntax​

6

Why Python?

7

media

​Why Python?

8

media
media

Why Python?

media
media
media
media
media
media
media
media
media

9

media

First of all…..We need to understand Data Types!

10

Data Types

Many programming languages require you to state the type of data

you want to store in it.

The main data types are:

Integer

Real/Float

Boolean

Char

​Integer

Real

Boolean

String

Char

11

media

An integer is a whole number without a fractional part (decimal place).

Integer

© ZigZag Education, 2020

Here are some examples of integers:

5 .75

People = 4

Score = 75

Age = 14

12

media

Real numbers (also known as floating point) can have a fractional

part (decimal place).

Real/float

© ZigZag Education, 2020

Here are some examples of real numbers:

5.75

Temperature =

18.5
Price = 1.84

Height = 1.85

13

media

The Boolean data type supports only two different values:

True and False.

Boolean

© ZigZag Education, 2020

These values are represented using binary.

0 = False

1 = True

Authorised =

True

Overdue =

False

14

media

The character data type stores a single alphanumeric character.

Character

© ZigZag Education, 2020

Here are some examples of characters:

This could be a letter, number or symbol.

Gender = F

Grade = B

Initial = H

15

media

A string is a group of characters.

String

© ZigZag Education, 2020

Here are some examples of strings:

Name = “Alex”
Postcode = “N1

5BH”

City =

“London”

Strings are usually enclosed within quote marks “ ”.

16

Data Types

Many programming languages require you to state the type of data

you want to store in it.

The main data types are:

Integer

Real/Float

Boolean

Char

​Integer

Real

Boolean

String

Char

a whole number

decimal number

True/False

Group of characters

1 character

17

© ZigZag Education, 2020

​Questions ahead...

18

Multiple Choice

What data type is this: 5

1

String

2

Integer

3

Real/Float

4

Boolean

5

Character

19

Multiple Choice

What data type is this: “David”

1

String

2

Integer

3

Real/Float

4

Boolean

5

Character

20

Multiple Choice

What data type is this: “F”

1

String

2

Integer

3

Real/Float

4

Boolean

5

Character

21

Multiple Choice

What data type is this: TRUE

1

String

2

Integer

3

Real/Float

4

Boolean

5

Character

22

Demo - I Do

23

Demo Hello world We Do

24

Demo print own name
You Do

25

media
media

Python Programming

This is where I write my code.

Hashtags are important to explain
what your code is doing.

This is what will be output when
we run the code.

26

media
media

Python Programming

This is where I write my code.

Hashtags are important to explain
what your code is doing.

This is what will be output when
we run the code.

27

media
media

# help us spot errors as we are saying what the code
should be doing. Now - can you spot the errors in the next
few examples?

28

media
media
media

# help us spot errors as we are saying what the code
should be doing. Now - can you spot the errors in the next
few examples?

This should be a lowercase
P or else you will get an
error.

29

media
media

# help us spot errors as we are saying what the code
should be doing. Now - can you spot the errors in the next
few examples?

30

media

# help us spot errors as we are saying what the code
should be doing. Now - can you spot the errors in the next
few examples?

This sentence should have speech
marks as it is a data type
string(words).

31

media
media
media

# help us spot errors as we are saying what the code
should be doing. Now - can you spot the errors in the next
few examples?

This sentence should have a
closing bracket at the end.

32

media

Activity 1 and 2 - Class Notebook.

Activity 1: Printing strings and Activity 2: Data Types.

NOTE: The slides are also in the files section of teams to help you.

33

media

Printing integers - What is an integer?

34

media

An integer is a whole number without a fractional part (decimal place).

Integer

© ZigZag Education, 2020

Here are some examples of integers:

5 .75

People = 4

Score = 75

Age = 14

35

media

So what was a float?

36

media

Real numbers (also known as floating point) can have a fractional

part (decimal place).

Real/float

© ZigZag Education, 2020

Here are some examples of real numbers:

5.75

Temperature =

18.5
Price = 1.84

Height = 1.85

37

media

Demo printing numbers

38

media

Activity 3 - Class Notebook.

Open up the worksheet Python introduction on class notebook and complete

Activity 3: Printing integers and floats.

NOTE: The slides are also in the files section of teams to help you.

39

media
media

Pause point

We know how to print strings(as shown again below)….. So how do we print
integers/floats?

40

media
media
media

Pause point

We know how to sprint strings(as shown again below)….. So how do we print
integers/floats?

What is different about the way we print integers and floats to strings?

​Do Now:

​ 1. Log in

  1. Go to Class Notebook

  2. Go to Spring Term - L1 Introduction to Python 

  3. Complete Do Now

Show answer

Auto Play

Slide 1 / 40

SLIDE