Q3W1L1 GR 9-Pyhton Programming and Pseudocode
Q3W1L1 GR 9-Pyhton Programming and Pseudocode
1 Starting up
with Python
Unit 1 Introduction to Python
DigiPro | Level 7
Learning Objectives
2
Outline:
● Introduction to algorithms
● Writing an algorithms
● Using flowcharts
3
The importance of programming
4
Introduction to Algorithms
5
6
Writing an Algorithm
7
Writing an Algorithm
To write an algorithm you have to provide a finite number of well-ordered
steps.
For example, an algorithm for making one cup of instant coffee would be as
follows:
Step 3: it before pouring hot water into the cup. Add sugar, if required, and
stir.
8
Problem Statement
Your friend is traveling abroad for further studies. You want to call and
wish him good luck. Write an algorithm to carry out this action.
List down the steps you would take to make the required phone call.
9
Solutio
n
10
Problem Statement
Write an algorithm to find if the given three sides form a triangle or not.
A triangle is valid if the sum of its two sides is greater than the third
side. If the three sides are side1, side2 and side3, then either of the
following three conditions should be met:
1. side1+side2>side3
2. side2+side3>side1
3. side3+side1>side2
12
Creating Flowcharts
13
Creating a flowchart
14
Q. Provide a flowchart to add number 529 and 256
15