0% found this document useful (0 votes)
17 views

Numbers & Operators 1

Powerpoint to accompany the 1st lesson on Numbers and Operators in Python for KS3 students.

Uploaded by

Aakifah Rahman
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Numbers & Operators 1

Powerpoint to accompany the 1st lesson on Numbers and Operators in Python for KS3 students.

Uploaded by

Aakifah Rahman
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Numbers & Operators 1

5
1

-3 4L
2.0
Starter
• What is the name of the variable
shown in the picture ?
• Which number is stored in it ?
• What is the Python code for this
picture ?
• Print the variable
Recap
Store your name into a variable. Print your name out
onto the screen.

Hint: Use the code below to help you.

name = “Miss Haya”


print name
OBJECTIVES

• Write Python code using Numbers

• Demonstrate usage of Numerical Operators


to solve real-world problems
SUCCESS CRITERIA

You Must: Be able to list the numerical


operators in python
You Should: Complete all class tasks using
Programiz
You Could: Aim to do the extension task
NUMBERS

• Numbers in Python store numeric values


• Example :

var1 = 1
var2 = 10
NUMBERS

• Numbers can be of 2 types in Python:


• int – These numbers have no decimal
point, they can be positive or negative

• float – These are numbers with a decimal


point, they can be positive or negative
OPERATORS

+ •Operators are
** - used to do
operations
% * (calculations) on
Numbers.
/
Operator and Operand

• An Operator is a symbol that represents an operation


that may be performed on one or more operands
• An Operand is a value that a given operator is applied
to.
KEYWORDS: Addition, subtraction, multiplication, division, modulus, exponent.
Demonstrate using operators to solve problems

Demonstration for Class Activity:

number1 = 10
number2 = 5
answer= number1 + number2
print(answer)

KEYWORDS: Syntax, Python, print, input, variables


Demonstration for Class Activity:

10
nu m
number1 = 10 ber1

5
number2 = 5 nu m
ber2
15
answ
answer= number1 + number2 er

print(answer)

KEYWORDS: Syntax, Python, print, input, variables


CLASS ACTIVITY
• You will be
assigned one of
the 3 group Butterfly Sparrow
names by your
teacher.
• You have to only
do the task that is
related to your
group name.
Falcon
Complete the table in
Task 1
your Class Notebook by
using the pen to Draw
BUTTERFLY TASK 1
Complete the table

KEYWORDS: Variable, value, print, Assign, addition, multiplication, division


Save the screenshot of
Task 1
your work into your Class
Notebook on Teams
BUTTERFLY TASK 2

1) Type the code on the left.


number1 = 4
2) Run the program to get an
number2 = 2
output
answer= number1 + number2
3) Take a screenshot and save it
print (answer)

KEYWORDS: Variable, value, print, Assign, addition, multiplication, division


Save the screenshot of
Task 1
your work into your Class
Notebook on Teams SPARROW TASK 1
1) Type the code on the left.
2) Run the program to get an
number1 = 11 output
number2 = 2 3) Take a screenshot and save it
answer= number1 + number2 4) Change the code to Subtract
print (answer) the two numbers together.
5) Take a screenshot again to
save it

KEYWORDS: Variable, value, print, Assign, addition, multiplication, division


SPARROW TASK 2
Save the screenshot of
Task 2
your work into your Class
Notebook on Teams

1) Type the code on the left.


2) Run the program to get an
number1 = 8 output
number2 = 6 3) Take a screenshot and save it
answer= number1 + number2 4) Change the code to Multiply
print (answer) the two numbers together.
5) Take a screenshot again to
save it

KEYWORDS: Variable, value, print, Assign, addition, multiplication, division


Save the screenshot of
Task 1
your work into your Class
Notebook on Teams FALCON TASK 1
1) Type the code on the left.
2) Run the program to get an
number1 = 11 output
number2 = 2 3) Take a screenshot and save it
answer= number1 / number2 4) Change the code to Exponent
print (answer) of the two numbers
5) Take a screenshot again to
save it

KEYWORDS: Variable, value, print, Assign, addition, multiplication, division


Save the screenshot of
Task 1
your work into your Class
Notebook on Teams FALCON TASK 2
1) Write Python code that will be
used to calculate the area of a
length = 4 rectangle. Print out the final
width = 6 area.
2) HINT: Think of which variables
area = length * width you need to make in the code
print(area) first
3) Screenshot your final working
code
KEYWORDS: Variable, value, print, Assign, addition, multiplication, division
PLENARY -
Quizizz
https://quizizz.com/admin/quiz/613ee2814fd434001dfa0c9a

KEYWORDS: Variable, value, print, Assign, addition, multiplication, division

You might also like