Learn to Code - 01 - page from the textbook
Back to Class
5

Learn to Code - 01

109-135 • Source: SCERT Delhi ICT Textbook, Revised Edition 2026 3 Fun Facts
8 min read

The field guide

Understand it. Try it. Remember it.

Coding starts before a computer is switched on: first describe the problem, then write precise steps. Algorithms, flowcharts and simple programs all express that plan in different ways, making it easier to test and improve.

Textbook reference: pages 109-135

01
Plan
Build
03
Test
Concept mapFollow the pathLearn to Code - 01: Plan, Build, Test

In this lesson

01

Algorithm

Definition

Definition: An algorithm is a step-by-step method to solve a task or problem.

Example from the book

  • An algorithm to calculate the square of a number.
02

Flowchart

Definition

Definition: A flowchart shows an algorithm as a picture — its steps and the order they happen in.

Common symbols

  1. 1

    Oval: Start and end of the flowchart.

  2. 2

    Diamond: A decision point — a true/false check.

  3. 3

    Arrows: Show the direction of flow.

03

Control Flow

Definition

Definition: Control flow is the order in which a computer runs the instructions of a program.

  1. 1

    1. Sequence Flow: Instructions run top to bottom, one after another (the default).

  2. 2

    2. Selection Control: Choosing a path based on a condition — e.g. if it rains, take an umbrella.

  3. 3

    3. Iteration: Repeating a set of instructions until a condition is met.

04

Drawing Flowcharts with Google Drawings

  1. 1

    Step 1: Open https://docs.google.com/drawings in a web browser.

  2. 2

    Step 2: Open a blank sheet and give it a suitable name.

  3. 3

    Step 3: Draw the flowchart of the square algorithm using shapes.

Your turn

Try a quick challenge

Write steps for a program that asks for two numbers and displays their total. Mark the input, calculation and output.

Quick Revision

  • Algorithm: step-by-step solution method.
  • Flowchart: picture of an algorithm.
  • Sequence: top-to-bottom execution.
  • Selection: choosing a path by condition.
  • Iteration: repeating steps.

Conclusion: Code is just a plan written for the computer — think the steps first, draw them, then code them.

Keep in mind

Quick recap

  • An algorithm is a finite, ordered plan for a task.
  • Decisions choose a path; loops repeat a step under a condition.
  • Test more than one case and improve the plan when it fails.

Key Terms

Algorithm

एल्गोरिथम

Flowchart

फ्लोचार्ट

Loop

लूप

Variable

चर

Python

पायथन