Download presentation
Presentation is loading. Please wait.
Published byLorraine Richardson Modified over 9 years ago
1
PYTHON PROGRAMMING Week 5 - Wednesday
2
THE FRIENDSHIP ALGORITHM https://www.youtube.com/watch?v=k0xgjUhEG3U Note the infinite loop!
3
YESTERDAY What is an algorithm? What is a function? What is a parameter?
4
REMINDERS Key Terms & Concepts – weeks 1 & 2 Print out programs and annotate them
5
TODAY Algorithms Writing simple algorithms Stepwise refinement Python Writing functions with and without parameters How to call functions Some library/built in functions
6
YOUR OWN LIBRARY OF FUNCTIONS We can create a file of useful functions and then import it into other programs we write. Why bother? Reuse Divide work Easy to test Use as building bricks Reduce complexity Functions are our friends!
7
ALGORTHM DESIGN Stepwise refinement p20 - read Questions 1 – 6 (p20-21) – work in pairs
8
MASTERY TASK 2 On Edmodo for you to complete in class today
9
PRACTICAL Codecademy: Functions Plus Exercises Challenges
10
RECAP What is an algorithm? Stepwise refinement?
11
NEXT WEEK More on algorithms approaches to writing them why functions are our friends More on functions - Codecademy
12
HOMEWORK Read page 21 and complete questions 8, 9 and 10 on the next page. Challenge: Create a Python program for question 10
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.