Learning Objectives and Programming in Python 2.7

Learning Objectives-
Understand what an
algorithm is and how
it is used in coding.
Silver - 
Learn to write
algorithms in
pseudocode
 
Gold - 
Review the
difference between
syntax errors, run-
time errors and logic
errors
 
Platinum- 
Learn
techniques for
debugging programs
Practice these spellings (three (3) times
each)
1.
algorithm
2.
syntax
3.
debugging
4.
programs
5.
Python
Using your book…
Create a code for a while loop
 
3 minutes
3 minutes
Learning Objectives-
Understand what an
algorithm is and how
it is used in coding.
Silver - 
Learn to write
algorithms in
pseudocode
 
Gold - 
Review the
difference between
syntax errors, run-
time errors and logic
errors
 
Platinum- 
Learn
techniques for
debugging programs
1.
algorithm
2.
syntax
3.
debugging
4.
programs
5.
Python
Spellings-
Log on and load a sticky note
Create a sentence using one
of these spellings.
Silver - 
Learn to write algorithms in pseudocode
 
Gold - 
Review the difference between syntax errors,
run-time errors and logic errors
 
Platinum- 
Learn techniques for debugging programs
Learning Objectives-
Understand what an algorithm is and
how it is used in coding.
Programming in Python
Lesson 6
- Algorithms
Learning Objectives-
Understand what an
algorithm is and how
it is used in coding.
Silver - 
Learn to write
algorithms in
pseudocode
Gold - 
Review the
difference between
syntax errors, run-
time errors and logic
errors
Platinum- 
Learn
techniques for
debugging programs
Understanding how computers are used and
should work is extremely vital. 
Python is a
powerful but easy-to-use high-level
programming language. It is important that you
understand the process of developing programs,
the importance of writing correct syntax, being
able to formulate algorithms for simple
programs and debugging their programs.
Programming is used to create all the games,
social media and apps you use in your daily life.
Why are you learning about this?
  
Keystone Word!
Using your book, what does the term
algorithm
 mean?
 
connect
Algorithm
 
#GhostHunter
if 
ghost catches man then
   
 
lives 
 
lives – 1
 
if 
lives = 0 then
    
 
 
display 
"Game Over!"
 
else
  
 
display 
"Arghhh!"
Learning Objectives-
Understand what an
algorithm is and how
it is used in coding.
Silver - 
Learn to write
algorithms in
pseudocode
 
Gold - 
Review the
difference between
syntax errors, run-
time errors and logic
errors
 
Platinum- 
Learn
techniques for
debugging programs
What does this program do?
Look at the code below and describe on a sticky note
what each line does
Explain what you did using 2 keywords –
Algorithm, Syntax, Program, Python
Give an example of where this may be used.
Learning Objectives-
Understand what an
algorithm is and how
it is used in coding.
Silver - 
Learn to write
algorithms in
pseudocode
 
Gold - 
Review the
difference between
syntax errors, run-
time errors and logic
errors
 
Platinum- 
Learn
techniques for
debugging programs
Suggested language for
Pseudocode
Use indentation in pseudocode
Use words such as:
print
, 
display
, 
input
, 
output
, 
calculate
, 
add
, 
set
,
reset, if, then, else
Pseudocode Example:
 
if
 
unlock button pressed 
then
 
display
 PIN unlock screen
 
input
 PIN
 
if
 
correct PIN entered 
then
  
unlock phone
 
else
 
display
 “Try again”
else
 
display
 lock screen
Learning Objectives-
Understand what an
algorithm is and how
it is used in coding.
Silver - 
Learn to write
algorithms in
pseudocode
 
Gold - 
Review the
difference between
syntax errors, run-
time errors and logic
errors
 
Platinum- 
Learn
techniques for
debugging programs
Now write the code in Python-
You
should understand the problem more clearly
It should be easier to write – in any language!
Writing an Algorithm
Write a pseudocode algorithm 
using Word 
to
display the correct hat size based on the
circumference of your head:
Less than 57cm = Small
Greater than 60cm = Large
Anything in between = Medium
 
5 minutes
5 minutes
Slide Note
Embed
Share

Explore the concepts of algorithms, programming in Python 2.7, data types, variables, and error types. Enhance your coding skills by understanding algorithms, writing pseudocode, and practicing debugging techniques. Develop programs using while loops and interactive user input in Python.


Uploaded on Jul 14, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Learning Objectives- Understand what an algorithm is and how it is used in coding. Learning Objectives Be able to write a program in Python 2.7 Silver - Learn to write algorithms in pseudocode Using your book 3 minutes Create a code for a while loop Learning Outcomes All To know what main data types are and what a variable is in programming difference between syntax errors, run- time errors and logic errors Gold - Review the Practice these spellings (three (3) times each) 1. algorithm 2. syntax 3. debugging 4. programs 5. Python Most Be able to write a program in Python Platinum- Learn techniques for debugging programs Some Create a program that asks the user questions and then prints out information

  2. Spellings- Learning Objectives- Understand what an algorithm is and how it is used in coding. Learning Objectives Be able to write a program in Python 2.7 Silver - Learn to write algorithms in pseudocode Log on and load a sticky note Learning Outcomes All To know what main data types are and what a variable is in programming difference between syntax errors, run- time errors and logic errors 1. algorithm 2. syntax 3. debugging 4. programs 5. Python Gold - Review the Most Be able to write a program in Python Platinum- Learn techniques for debugging programs Some Create a program that asks the user questions and then prints out information Create a sentence using one of these spellings.

  3. Learning Objectives- Understand what an algorithm is and how it is used in coding. Learning Objectives Be able to write a program in Python 2.7 Learning Outcomes All To know what main data types are and what a variable is in programming Silver - Learn to write algorithms in pseudocode Gold - Review the difference between syntax errors, Most Be able to write a program in Python run-time errors and logic errors Some Create a program that asks the user questions and then prints out information Platinum- Learn techniques for debugging programs

  4. Learning Objectives Be able to write a program in Python 2.7 Learning Outcomes All To know what main data types are and what a variable is in programming Programming in Python Most Be able to write a program in Python Lesson 6- Algorithms Some Create a program that asks the user questions and then prints out information

  5. Learning Objectives- Understand what an algorithm is and how it is used in coding. Learning Objectives Be able to write a program in Python 2.7 Silver - Learn to write algorithms in pseudocode Why are you learning about this? Understanding how computers are used and should work is extremely vital. Python is a powerful but easy-to-use high-level programming language. It is important that you understand the process of developing programs, the importance of writing correct syntax, being able to formulate algorithms for simple programs and debugging their programs. Programming is used to create all the games, social media and apps you use in your daily life. software, documenting defects, designing tests and scenarios, and creating manuals for new software. They also review software designs for functionality and potential problems. Learning Outcomes All To know what main data types are and what a variable is in programming difference between syntax errors, run- time errors and logic errors Gold - Review the Software quality assurance (QA) engineer 2017 median salary: 88,5102 Education requirements: Bachelor s degree2 Projected employment growth (2016-2026): 9 percent (as fast as average)2 Software QA engineers are at the beginning of Most Be able to write a program in Python Platinum- Learn techniques for debugging programs Some Create a program that asks the user questions and then prints out information

  6. Learning Objectives Be able to write a program in Python 2.7 Using your book, what does the term algorithm mean? 3 connect Keystone Word! Learning Outcomes All To know what main data types are and what a variable is in programming Most Be able to write a program in Python Some Create a program that asks the user questions and then prints out information

  7. Algorithm Learning Objectives Be able to write a program in Python 2.7 algorithm (/ l r m/ ) is a set of instructions, typically to solve a class of problems or perform a computation. Algorithms are unambiguous specifications for performing calculation, data processing, automated reasoning, and other tasks. Word In mathematics and computer science, an Image Learning Outcomes All To know what main data types are and what a variable is in programming Most Be able to write a program in Python Examples Writing Pseudocode- Pseudocode is half code, half English It has no real syntax and would not run Some Create a program that asks the user questions and then prints out information It is a structured sequence of instructions It is useful for planning algorithms

  8. Learning Objectives- Understand what an algorithm is and how it is used in coding. What does this program do? Learning Objectives Be able to write a program in Python 2.7 Silver - Learn to write algorithms in pseudocode 5 Look at the code below and describe on a sticky note what each line does Learning Outcomes All To know what main data types are and what a variable is in programming difference between syntax errors, run- time errors and logic errors #GhostHunter if ghost catches man then lives lives 1 if lives = 0 then display "Game Over!" else display "Arghhh!" Gold - Review the Most Be able to write a program in Python Platinum- Learn techniques for debugging programs Some Create a program that asks the user questions and then prints out information Explain what you did using 2 keywords Algorithm, Syntax, Program, Python Give an example of where this may be used.

  9. Suggested language for Pseudocode Use indentation in pseudocode Use words such as: print, display, input, output, calculate, add, set, reset, if, then, else Pseudocode Example: Learning Objectives- Understand what an algorithm is and how it is used in coding. Learning Objectives Be able to write a program in Python 2.7 Silver - Learn to write algorithms in pseudocode 10 Learning Outcomes All To know what main data types are and what a variable is in programming difference between syntax errors, run- time errors and logic errors Gold - Review the Most Be able to write a program in Python ifunlock button pressed then display PIN unlock screen input PIN ifcorrect PIN entered then unlock phone elsedisplay Try again elsedisplay lock screen Platinum- Learn techniques for debugging programs Some Create a program that asks the user questions and then prints out information

  10. Learning Objectives- Understand what an algorithm is and how it is used in coding. Writing an Algorithm 10 Learning Objectives Be able to write a program in Python 2.7 Silver - Learn to write algorithms in pseudocode Write a pseudocode algorithm using Word to display the correct hat size based on the circumference of your head: Less than 57cm = Small Greater than 60cm = Large Anything in between = Medium Learning Outcomes All To know what main data types are and what a variable is in programming difference between syntax errors, run- time errors and logic errors Gold - Review the Most Be able to write a program in Python Platinum- Learn techniques for debugging programs Some Create a program that asks the user questions and then prints out information Now write the code in Python-You should understand the problem more clearly It should be easier to write in any language!

  11. 5 minutes 1.What new knowledge or skill have you learnt this lesson? 2.What knowledge or skills did you use today that you used in a previous lesson? 3.How does the knowledge or skill link to another subject you study?

Related


More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#