LEARNING OBJECTIVE
 Understand and be able to use
basic Python syntax.
LESSON OUTCOMES
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using
Python …
STARTER – 5 MINS
1.Open up a text editor such as Notepad.
2.Write a list of all the apps, programs
and applications you have used so far
today.
3.Be ready to share your ideas with the
class.
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …
USING PYTHON …
To open Python,
click the following:
1. Use the Python Help menu to find out what an
IDLE is.
2. What does IDLE stand for?
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …
MINI PLENARY
Jim uses an IDLE to create a program.
Think of two tools in an IDLE that can help
Jim when creating the program.
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …
WRITING YOUR FIRST PROGRAM
In a new Python shell copy the following code:
print ("What is your name?")
firstname = input()
print ("Hello,",firstname)
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …
SYNTAX ERRORS
In a new Python Shell, copy the lines of
code below:
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …
SYNTAX ERRORS EXPLAINED …
If you have copied the code correctly your IDLE should look like this:
messages
point out a
problem with
the program.
Speech marks,
colons, brackets,
apostrophes and
spelling words
have to be just
right.
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …
PLENARY
A syntax error can occur when
writing a program.
1. What is meant by a syntax error, give an
example.
Learning Outcome
 I can identify the different computer
programming languages that I use …
 I can use IDLE in Python …
 I can write and run a program using Python …

Year 7 lesson 1 introduction to programming

  • 2.
    LEARNING OBJECTIVE  Understandand be able to use basic Python syntax.
  • 3.
    LESSON OUTCOMES  Ican identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 4.
    STARTER – 5MINS 1.Open up a text editor such as Notepad. 2.Write a list of all the apps, programs and applications you have used so far today. 3.Be ready to share your ideas with the class. Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 5.
    USING PYTHON … Toopen Python, click the following: 1. Use the Python Help menu to find out what an IDLE is. 2. What does IDLE stand for? Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 6.
    MINI PLENARY Jim usesan IDLE to create a program. Think of two tools in an IDLE that can help Jim when creating the program. Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 7.
    WRITING YOUR FIRSTPROGRAM In a new Python shell copy the following code: print ("What is your name?") firstname = input() print ("Hello,",firstname) Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 8.
    SYNTAX ERRORS In anew Python Shell, copy the lines of code below: Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 9.
    SYNTAX ERRORS EXPLAINED… If you have copied the code correctly your IDLE should look like this: messages point out a problem with the program. Speech marks, colons, brackets, apostrophes and spelling words have to be just right. Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …
  • 10.
    PLENARY A syntax errorcan occur when writing a program. 1. What is meant by a syntax error, give an example. Learning Outcome  I can identify the different computer programming languages that I use …  I can use IDLE in Python …  I can write and run a program using Python …