Programming Constructs Python-Students
Programming Constructs Python-Students
An Introduction with
Python
Programming Constructs
“There are 3 different
constructs used in
computer programming.”
Go to the
Put on coat
cinema
Stay at home
Add water and watch TV
Is
Have
Check contents the cup at least
Of wallet/purse
full?
Put on jumper
Stop Put on shirt
£10?
Flowchart Symbols
Start
… …
…
…
…
Look at the following snippets of
Python…
Are they a sequence, a selection or an
iteration?
?
Sequence
?
Selection
?
Iteration
Student Challenge #3
Are they a sequence, a selection or an
iteration?
???????
???????
???????
Programming Introduction - Recap
What are the 3 constructs used in computer programming?
? ?
?
Now attempt the Sequencing, Selection and Iteration Quiz
(Press Shift + F5 to run this slide, and then click the above link)
Python Challenge
If you already have some Python programming experience, try this challenge.
Here is the familiar ‘Hello World’ program. Cut & paste it to your IDLE editor.
language = input()
if language == "1":
print ("Hello World!")