

Y9 Python L1
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Roy Duguid
Used 23+ times
FREE Resource
36 Slides • 4 Questions
1
Do Now:
1. Log in
Go to Class Notebook
Go to Spring Term - L1 Introduction to Python
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
Why Python?
8
Why Python?
9
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
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
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
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
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
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
String
Integer
Real/Float
Boolean
Character
19
Multiple Choice
What data type is this: “David”
String
Integer
Real/Float
Boolean
Character
20
Multiple Choice
What data type is this: “F”
String
Integer
Real/Float
Boolean
Character
21
Multiple Choice
What data type is this: TRUE
String
Integer
Real/Float
Boolean
Character
22
Demo - I Do
23
Demo Hello world We Do
24
Demo print own name
You Do
25
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
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
# 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
# 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
# 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
# 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
# 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
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
Printing integers - What is an integer?
34
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
So what was a float?
36
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
Demo printing numbers
38
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
Pause point
We know how to print strings(as shown again below)….. So how do we print
integers/floats?
40
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
Go to Class Notebook
Go to Spring Term - L1 Introduction to Python
Complete Do Now
Show answer
Auto Play
Slide 1 / 40
SLIDE
Similar Resources on Wayground
35 questions
[igCS] Database - Intro, Structure and Data types
Presentation
•
9th - 10th Grade
32 questions
ITX102 - Information and Processing Part 2
Presentation
•
10th Grade
34 questions
Parliamentary Procedure
Presentation
•
10th Grade
34 questions
Unit 6 T5 - IDEs Integrated Development Environments
Presentation
•
11th Grade
33 questions
Unit 4 Practice Exam
Presentation
•
9th Grade
38 questions
Malware
Presentation
•
9th Grade
36 questions
Wildseed Ch 2
Presentation
•
10th Grade
32 questions
Flowcharts and pseudocode
Presentation
•
10th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
10 questions
Test Your Knowledge with 15 Fun Trivia Questions
Interactive video
•
6th - 10th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade