0% found this document useful (0 votes)
8 views15 pages

Q3W1L1 GR 9-Pyhton Programming and Pseudocode

This document is an introduction to Python programming, focusing on algorithms and flowcharts. It outlines learning objectives, the importance of programming, and provides examples of writing algorithms and creating flowcharts. Students are encouraged to practice by solving problems and visualizing their solutions through flowcharts.

Uploaded by

aalaa.mady
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views15 pages

Q3W1L1 GR 9-Pyhton Programming and Pseudocode

This document is an introduction to Python programming, focusing on algorithms and flowcharts. It outlines learning objectives, the importance of programming, and provides examples of writing algorithms and creating flowcharts. Students are encouraged to practice by solving problems and visualizing their solutions through flowcharts.

Uploaded by

aalaa.mady
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Sprint 1.

1 Starting up
with Python
Unit 1 Introduction to Python

DigiPro | Level 7
Learning Objectives

Students will learn to


● write an algorithm;
● visually explain how instructions would be carried out in a
sequence;
● draw flowcharts using Google Drawings tools.

2
Outline:
● Introduction to algorithms
● Writing an algorithms
● Using flowcharts

3
The importance of programming

Computer programs and applications simplify our daily tasks. For


example, Google provides us with whatever information we require in a
matter of seconds. It simplifies the task of searching and saves time.

Similarly, programming allows us to create programs that help us save


time and effort.

4
Introduction to Algorithms

A set of well-defined instructions that allow you to solve a


problem in a step-by-step manner is called an algorithm.

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 1: Heat around one cup of water.

Step 2: Add a teaspoon of instant coffee powder to an empty cup with a


tablespoon of cold water.

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

List down the steps to solve this problem.


11
Solution:

12
Creating Flowcharts

A flowchart is a graphical representation of the logical flow of


data. It uses standard symbols to visually explain how
instructions would be carried out in a sequence to achieve the
desired results.

13
Creating a flowchart

14
Q. Provide a flowchart to add number 529 and 256

15

You might also like