SlideShare a Scribd company logo
LESSON OBJECTIVES
๏ฑ Learn how to use Python to work out
maths calculations.
LESSON OUTCOMES
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...
[ slide 4 ]
STARTER
Escape sequences have a special purpose in Python.
See below:
Complete Task 1 on Worksheet 2 to try out escape
sequences in your own code.
Lesson outcomes
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...
[ slide 5 ]
PYTHON AS A CALCULATOR
Now complete Task 2 on Worksheet 2 to try out
some more basic maths in Python.
Lesson outcomes
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...
Open Python Shell and have a go at the
calculations in the table below:
MINI PLENARY
In pairs try
the Mini Plenary task on Worksheet 2.
Did the calculator
beat Python??
Lesson outcomes
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...
[ slide 7 ]
COMBINING MATHS & TEXT
What will the output from this code produce?
>>> print("11 divided by 4 = ", 11//4,
"remainder ", 11%4)
>>> print("111 divided by 4 = ", 111/4)
>>> print("11 divided by 4 = ", 11/4)
Now try Task 3 on Worksheet 2.
Lesson outcomes
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...
MORE TEXT AND MATHS ...
We can use text to label numbers for example:
coins = 20 Why???
Reason: If we need to demonstrate how many
coins we own more than once and the value of
the coins change, we only need to change the
number at the start of the program once.
As programmers this can saves us lots of time.
Now try Task 4 on Worksheet 2.
Lesson outcomes
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...
[ slide 8 ]
PLENARY
๏ฑ The escape sequence n is used to create a ...
๏ฑ The escape sequence t is used to create a ...
๏ฑ The operator * is used to ...
๏ฑ The operator / is used to ...
๏ฑ The operator // is used to ...
๏ฑ You can also f.... numbers to create a decimal.
Lesson outcomes
๏ฑ I can use more text in Python ...
๏ฑ I can use basic maths in Python ...
๏ฑ I can use both text and maths in Python
programming ...

More Related Content

Similar to Year 7 lesson 2 text and maths

Mastering Python lesson 3a
Mastering Python lesson 3aMastering Python lesson 3a
Mastering Python lesson 3a
Ruth Marvin
ย 
Python Introduction Week-1 Term-3.pptx
Python Introduction Week-1 Term-3.pptxPython Introduction Week-1 Term-3.pptx
Python Introduction Week-1 Term-3.pptx
Mohammad300758
ย 
Python Interview Questions And Answers
Python Interview Questions And AnswersPython Interview Questions And Answers
Python Interview Questions And Answers
H2Kinfosys
ย 
1. Python Turtle.pptx
1. Python Turtle.pptx1. Python Turtle.pptx
1. Python Turtle.pptx
PreranaVarshney
ย 
Python fundamentals
Python fundamentalsPython fundamentals
Python fundamentals
natnaelmamuye
ย 
ACM init()- Day 4
ACM init()- Day 4ACM init()- Day 4
CrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersCrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for Beginners
Olga Scrivner
ย 
programming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptxprogramming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptx
aboma2hawi
ย 
PHYTON-REPORT.pdf
PHYTON-REPORT.pdfPHYTON-REPORT.pdf
PHYTON-REPORT.pdf
PraveenKumar640562
ย 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
Sasidhar Kothuru
ย 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
Sasidhar Kothuru
ย 
Mpi in-python
Mpi in-pythonMpi in-python
Mpi in-python
A Jorge Garcia
ย 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
mckennadglyn
ย 
pyton Notes1
pyton Notes1pyton Notes1
pyton Notes1
Amba Research
ย 
Python Homework Help
Python Homework HelpPython Homework Help
Python Homework Help
Python Homework Help
ย 
Python Objects
Python ObjectsPython Objects
Python Objects
MuhammadBakri13
ย 
A Gentle Introduction to Coding ... with Python
A Gentle Introduction to Coding ... with PythonA Gentle Introduction to Coding ... with Python
A Gentle Introduction to Coding ... with Python
Tariq Rashid
ย 
Module 1_ Introduction.pptx
Module 1_ Introduction.pptxModule 1_ Introduction.pptx
Module 1_ Introduction.pptx
nikshaikh786
ย 
Python basics
Python basicsPython basics
Numpy tutorial
Numpy tutorialNumpy tutorial
Numpy tutorial
HarikaReddy115
ย 

Similar to Year 7 lesson 2 text and maths (20)

Mastering Python lesson 3a
Mastering Python lesson 3aMastering Python lesson 3a
Mastering Python lesson 3a
ย 
Python Introduction Week-1 Term-3.pptx
Python Introduction Week-1 Term-3.pptxPython Introduction Week-1 Term-3.pptx
Python Introduction Week-1 Term-3.pptx
ย 
Python Interview Questions And Answers
Python Interview Questions And AnswersPython Interview Questions And Answers
Python Interview Questions And Answers
ย 
1. Python Turtle.pptx
1. Python Turtle.pptx1. Python Turtle.pptx
1. Python Turtle.pptx
ย 
Python fundamentals
Python fundamentalsPython fundamentals
Python fundamentals
ย 
ACM init()- Day 4
ACM init()- Day 4ACM init()- Day 4
ACM init()- Day 4
ย 
CrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersCrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for Beginners
ย 
programming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptxprogramming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptx
ย 
PHYTON-REPORT.pdf
PHYTON-REPORT.pdfPHYTON-REPORT.pdf
PHYTON-REPORT.pdf
ย 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
ย 
Spsl iv unit final
Spsl iv unit  finalSpsl iv unit  final
Spsl iv unit final
ย 
Mpi in-python
Mpi in-pythonMpi in-python
Mpi in-python
ย 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
ย 
pyton Notes1
pyton Notes1pyton Notes1
pyton Notes1
ย 
Python Homework Help
Python Homework HelpPython Homework Help
Python Homework Help
ย 
Python Objects
Python ObjectsPython Objects
Python Objects
ย 
A Gentle Introduction to Coding ... with Python
A Gentle Introduction to Coding ... with PythonA Gentle Introduction to Coding ... with Python
A Gentle Introduction to Coding ... with Python
ย 
Module 1_ Introduction.pptx
Module 1_ Introduction.pptxModule 1_ Introduction.pptx
Module 1_ Introduction.pptx
ย 
Python basics
Python basicsPython basics
Python basics
ย 
Numpy tutorial
Numpy tutorialNumpy tutorial
Numpy tutorial
ย 

More from tmoncrieff

Lesson 3-health-and-safety
Lesson 3-health-and-safetyLesson 3-health-and-safety
Lesson 3-health-and-safety
tmoncrieff
ย 
Lesson 2-human-computer
Lesson 2-human-computerLesson 2-human-computer
Lesson 2-human-computer
tmoncrieff
ย 
Lesson 4 binary numbers
Lesson 4   binary numbersLesson 4   binary numbers
Lesson 4 binary numbers
tmoncrieff
ย 
Lesson 1 inputs and outputs
Lesson 1   inputs and outputsLesson 1   inputs and outputs
Lesson 1 inputs and outputs
tmoncrieff
ย 
Lesson 4 binary numbers
Lesson 4   binary numbersLesson 4   binary numbers
Lesson 4 binary numbers
tmoncrieff
ย 
Lesson 3-health-and-safety
Lesson 3-health-and-safetyLesson 3-health-and-safety
Lesson 3-health-and-safety
tmoncrieff
ย 
Lesson 2-human-computer
Lesson 2-human-computerLesson 2-human-computer
Lesson 2-human-computer
tmoncrieff
ย 
Lesson 1 inputs and outputs
Lesson 1   inputs and outputsLesson 1   inputs and outputs
Lesson 1 inputs and outputs
tmoncrieff
ย 
Year 7 lesson 5 if statements
Year 7 lesson 5   if statementsYear 7 lesson 5   if statements
Year 7 lesson 5 if statements
tmoncrieff
ย 
Lesson 1 inputs and outputs
Lesson 1   inputs and outputsLesson 1   inputs and outputs
Lesson 1 inputs and outputs
tmoncrieff
ย 
16 btec12 first_bus_u8_ps2
16 btec12 first_bus_u8_ps216 btec12 first_bus_u8_ps2
16 btec12 first_bus_u8_ps2
tmoncrieff
ย 
17 btec12 first_bus_u8_ps3
17 btec12 first_bus_u8_ps317 btec12 first_bus_u8_ps3
17 btec12 first_bus_u8_ps3
tmoncrieff
ย 
15 btec12 first_bus_u8_ps1
15 btec12 first_bus_u8_ps115 btec12 first_bus_u8_ps1
15 btec12 first_bus_u8_ps1
tmoncrieff
ย 
04 btec12 first_bus_u3_pp1
04 btec12 first_bus_u3_pp104 btec12 first_bus_u3_pp1
04 btec12 first_bus_u3_pp1
tmoncrieff
ย 

More from tmoncrieff (14)

Lesson 3-health-and-safety
Lesson 3-health-and-safetyLesson 3-health-and-safety
Lesson 3-health-and-safety
ย 
Lesson 2-human-computer
Lesson 2-human-computerLesson 2-human-computer
Lesson 2-human-computer
ย 
Lesson 4 binary numbers
Lesson 4   binary numbersLesson 4   binary numbers
Lesson 4 binary numbers
ย 
Lesson 1 inputs and outputs
Lesson 1   inputs and outputsLesson 1   inputs and outputs
Lesson 1 inputs and outputs
ย 
Lesson 4 binary numbers
Lesson 4   binary numbersLesson 4   binary numbers
Lesson 4 binary numbers
ย 
Lesson 3-health-and-safety
Lesson 3-health-and-safetyLesson 3-health-and-safety
Lesson 3-health-and-safety
ย 
Lesson 2-human-computer
Lesson 2-human-computerLesson 2-human-computer
Lesson 2-human-computer
ย 
Lesson 1 inputs and outputs
Lesson 1   inputs and outputsLesson 1   inputs and outputs
Lesson 1 inputs and outputs
ย 
Year 7 lesson 5 if statements
Year 7 lesson 5   if statementsYear 7 lesson 5   if statements
Year 7 lesson 5 if statements
ย 
Lesson 1 inputs and outputs
Lesson 1   inputs and outputsLesson 1   inputs and outputs
Lesson 1 inputs and outputs
ย 
16 btec12 first_bus_u8_ps2
16 btec12 first_bus_u8_ps216 btec12 first_bus_u8_ps2
16 btec12 first_bus_u8_ps2
ย 
17 btec12 first_bus_u8_ps3
17 btec12 first_bus_u8_ps317 btec12 first_bus_u8_ps3
17 btec12 first_bus_u8_ps3
ย 
15 btec12 first_bus_u8_ps1
15 btec12 first_bus_u8_ps115 btec12 first_bus_u8_ps1
15 btec12 first_bus_u8_ps1
ย 
04 btec12 first_bus_u3_pp1
04 btec12 first_bus_u3_pp104 btec12 first_bus_u3_pp1
04 btec12 first_bus_u3_pp1
ย 

Recently uploaded

Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
ย 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
ย 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
ย 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
ย 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
ย 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
ย 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
ย 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
ย 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
ย 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
ย 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
ย 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
ย 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
ย 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
ย 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
ย 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
ย 
Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...
Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...
Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...
Nguyen Thanh Tu Collection
ย 
Prรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Prรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Prรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
ย 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
ย 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
ย 

Recently uploaded (20)

Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
ย 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
ย 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
ย 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
ย 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
ย 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
ย 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
ย 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
ย 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
ย 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
ย 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
ย 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
ย 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
ย 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
ย 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
ย 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
ย 
Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...
Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...
Bร€I TแบฌP Dแบ Y THรŠM TIแบพNG ANH LแปšP 7 Cแบข Nฤ‚M FRIENDS PLUS SรCH CHร‚N TRแปœI SรNG Tแบ O ...
ย 
Prรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Prรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Prรฉsentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
ย 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
ย 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
ย 

Year 7 lesson 2 text and maths

  • 1.
  • 2. LESSON OBJECTIVES ๏ฑ Learn how to use Python to work out maths calculations.
  • 3. LESSON OUTCOMES ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ...
  • 4. [ slide 4 ] STARTER Escape sequences have a special purpose in Python. See below: Complete Task 1 on Worksheet 2 to try out escape sequences in your own code. Lesson outcomes ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ...
  • 5. [ slide 5 ] PYTHON AS A CALCULATOR Now complete Task 2 on Worksheet 2 to try out some more basic maths in Python. Lesson outcomes ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ... Open Python Shell and have a go at the calculations in the table below:
  • 6. MINI PLENARY In pairs try the Mini Plenary task on Worksheet 2. Did the calculator beat Python?? Lesson outcomes ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ...
  • 7. [ slide 7 ] COMBINING MATHS & TEXT What will the output from this code produce? >>> print("11 divided by 4 = ", 11//4, "remainder ", 11%4) >>> print("111 divided by 4 = ", 111/4) >>> print("11 divided by 4 = ", 11/4) Now try Task 3 on Worksheet 2. Lesson outcomes ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ...
  • 8. MORE TEXT AND MATHS ... We can use text to label numbers for example: coins = 20 Why??? Reason: If we need to demonstrate how many coins we own more than once and the value of the coins change, we only need to change the number at the start of the program once. As programmers this can saves us lots of time. Now try Task 4 on Worksheet 2. Lesson outcomes ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ...
  • 9. [ slide 8 ] PLENARY ๏ฑ The escape sequence n is used to create a ... ๏ฑ The escape sequence t is used to create a ... ๏ฑ The operator * is used to ... ๏ฑ The operator / is used to ... ๏ฑ The operator // is used to ... ๏ฑ You can also f.... numbers to create a decimal. Lesson outcomes ๏ฑ I can use more text in Python ... ๏ฑ I can use basic maths in Python ... ๏ฑ I can use both text and maths in Python programming ...

Editor's Notes

  1. Answers: 11 divided by 4 = 2 remainder 3 111 divided by 4 = 27.75 11 divided by 4 = 2.75