Presentation is loading. Please wait.

Presentation is loading. Please wait.

PYTHON PROGRAMMING Week 5 - Tuesday. THE FRIENDSHIP ALGORITHM https://www.youtube.com/watch?v=k0xgjUhEG3U Note the infinite loop!

Similar presentations


Presentation on theme: "PYTHON PROGRAMMING Week 5 - Tuesday. THE FRIENDSHIP ALGORITHM https://www.youtube.com/watch?v=k0xgjUhEG3U Note the infinite loop!"— Presentation transcript:

1 PYTHON PROGRAMMING Week 5 - Tuesday

2 THE FRIENDSHIP ALGORITHM https://www.youtube.com/watch?v=k0xgjUhEG3U Note the infinite loop!

3 LAST WEEK Conditionals and control flow

4 REMINDERS Key Terms & Concepts – weeks 1 & 2 Print out programs and annotate them

5 TODAY Algorithms  What is an algorithm?  How to write a simnple algorithm Python  Writing functions with and without parameters  How to call functions  Some library/built in functions

6 SIMPLE FUNCTION What does it do? Note  We can call it from IDLE  We can call it from another program  There is an existing functions that does this – max()  We can easily set up our own libraries of functions

7 ALGORITHM DESIGN Making a sandwich

8 ALGORTHM DESIGN Making Tea

9 PRACTICAL Codecademy:  Conditionals and Control Flow Plus  Exercises  Challenges

10 RECAP What is an algorithm? What is a function? A parameter? How can functions help us write complex programs?

11 TOMORROW More on algorithms  approaches to writing them  why functions are our friends Functions – practice Mastery Task 2

12 HOMEWORK Tomorrow!


Download ppt "PYTHON PROGRAMMING Week 5 - Tuesday. THE FRIENDSHIP ALGORITHM https://www.youtube.com/watch?v=k0xgjUhEG3U Note the infinite loop!"

Similar presentations


Ads by Google