HELLO WORLD - AN INTRODUCTION TO PYTHON
Learning Intentions
Evaluate the effectiveness of Siri on the iPhone
Identify and correct common errors in Python programs
Success Criteria
Create a “Hello World” program in the Python
Save and test a 'Hello World' program
Activity 1 - Starter
You are going to create a computer program that can think and reply to a question like ‘Siri.
Questions -
What is ‘Siri’?
What can it do?
What is your opinion of it?
Write an answer to these questions in your book before we discuss them as a class
Homework - hand in next lesson
Activity 2
Resources
Siri iPhone 4s - http://youtu.be/5mNcnj2l6RE
Siri Demonstration - http://youtu.be/MpjpVAB06O4
Siri talks to Siri - http://youtu.be/XBRXA8zmJr8
We are going to watch each of these YouTube video's and then you will be asked to first think of (or list) the advantages and disadvantages of technology like Siri and how it may advance 10 years from now.
After being given some short thinking time, you will be asked to then share & compare your list with your partner, noting differences in your book.
Then forming groups of 4 or more you will collate your collective responses ready to share these with the rest of the class.
Activity 3
Now we’re ready to programme - open the Python IDLE, what does it look like?
Look at the Command prompt
>>>
Let's write your first program type in
-->>> print("Hello World")
What happens?
Evaluate the effectiveness of Siri on the iPhone
Identify and correct common errors in Python programs
Success Criteria
Create a “Hello World” program in the Python
Save and test a 'Hello World' program
Activity 1 - Starter
You are going to create a computer program that can think and reply to a question like ‘Siri.
Questions -
What is ‘Siri’?
What can it do?
What is your opinion of it?
Write an answer to these questions in your book before we discuss them as a class
Homework - hand in next lesson
Activity 2
Resources
Siri iPhone 4s - http://youtu.be/5mNcnj2l6RE
Siri Demonstration - http://youtu.be/MpjpVAB06O4
Siri talks to Siri - http://youtu.be/XBRXA8zmJr8
We are going to watch each of these YouTube video's and then you will be asked to first think of (or list) the advantages and disadvantages of technology like Siri and how it may advance 10 years from now.
After being given some short thinking time, you will be asked to then share & compare your list with your partner, noting differences in your book.
Then forming groups of 4 or more you will collate your collective responses ready to share these with the rest of the class.
Activity 3
Now we’re ready to programme - open the Python IDLE, what does it look like?
Look at the Command prompt
>>>
Let's write your first program type in
-->>> print("Hello World")
What happens?
SYNTAX ERRORS
Computers follow instructions EXACTLY! Computers are not good at dealing with nearly, almost, not quite.
Syntax describes the rules that must be used when commands are written.
Colours
Different colours are used for different elements to help you.
Computers follow instructions EXACTLY! Computers are not good at dealing with nearly, almost, not quite.
Syntax describes the rules that must be used when commands are written.
Colours
Different colours are used for different elements to help you.
Task 4
Write these inputs in your book - Predict what happens -
—>>> print "Hello World"
—>>> print ("Hello World");
—>>> Print ("Hello World")
—>>> print ("Hel World")
—>>> prin (Hello World)
Now give it a go and see if you were right
DEBUGGING
Write these inputs in your book - Predict what happens -
—>>> print "Hello World"
—>>> print ("Hello World");
—>>> Print ("Hello World")
—>>> print ("Hel World")
—>>> prin (Hello World)
Now give it a go and see if you were right
DEBUGGING