Beep! Tap the happy computer!
Coding basics

Can we talk to a machine politely and precisely?

# What is coding? **Coding** (programming) means writing instructions a computer can follow. Humans speak English or Hindi. Computers need a **programming language**: Python, Scratch, JavaScript, Java, C, and many more. ## Why learn it? - It trains clear thinking - You can build games, websites, and tools - It is a future skill — but also a now skill - It is creative, like writing a story with rules ## You already “code” When you give a friend exact directions to your house, you are designing an algorithm. Coding is that, with perfect grammar the computer requires. ## Languages we will meet - **Scratch-style blocks** — snap steps together - **Python** — friendly words like `print` and `if` - **HTML** — labels for web pages > First rule of coding club: nobody is “born a coder”. Everyone starts with `print("Hello")`. ## Polite and precise Talking to a computer is like giving directions to someone who has never seen your street and will not guess. - Bad: “Go down a bit and take the usual turn.” - Good: “Walk 80 metres, then turn left at the blue gate.” ### What you will actually type later - **Sequence** — do this, then this - **Variables** — remember a value - **Decisions** — if / else - **Loops** — repeat - **Input / output** — ask, then show Those five ideas are 90% of beginner coding. Languages only change the spelling. ### WonderLearn motto, applied Understand the idea. Do not only memorise `print`. If you understand output, you can find print in any language.

By the end of this lesson

Explain coding as precise instructions, and connect a coding variable to algebra’s x.

Remember

  • Coding is writing precise instructions a computer can follow.
  • Computers are fast and obedient — and very literal. “Almost right” is still wrong.
  • A program is an algorithm written in a programming language.
  • Algebra’s x and Python’s score = 5 are the same idea: a named box for a number.
  • Languages you will hear: Python, Scratch (blocks), JavaScript, HTML (page structure).

Worked examples

Cover the answer. Try the steps on paper, then open them.

Example 1 — Literal robot

Instruction: “Put the book there.” Why does a robot fail?

  1. There is no place called “there”
  2. You must say: “Put the book on the left side of the red desk.”
  3. Coding is that kind of precision, every line

Answer: too vague for a machine

Check: Humans guess; machines do not.

Example 2 — Same box as algebra

x = 5 in maths and score = 5 in Python.

  1. Both name a box
  2. Both hold a number
  3. Both can be used in 2x or score + 1

Answer: variable in both worlds

Check: You already started coding in Algebra for Starters.

Example 3 — Language vs idea

Scratch blocks vs Python print("Hello").

  1. Different costume, same idea: output a message
  2. Blocks stop spelling errors; Python is typed
  3. The thinking (sequence, variables, if, loops) is shared

Answer: ideas transfer

Check: Learn ideas, not only one language’s spelling.

Common mistakes

Slip Thinking coding is only for Class 12 or geniuses.

Fix If you can write a clear Maggi recipe, you can start.

Precision + practice.

Slip Writing “add them somehow” in a program.

Fix The machine needs + or a function name.

No somehow.

Slip Believing HTML and Python are the same language.

Fix HTML structures a page. Python is a general language.

Different tools.

Try on paper first

Write the answer, then tap Reveal. These are not the quiz — they are warm-ups.

1. Coding is…

Answer: Writing precise instructions for a computer

2. A program is an algorithm plus a…

Answer: Programming language

3. Name one block language.

Answer: Scratch (or similar)

4. score = 5 in code is like what in algebra?

Answer: A variable (x = 5)

Touch practice

8 tap / type

Tap or type. Use the hint if you need it. Retry any miss — the why is the lesson.

Optional picture lab

After practice

Real world

Giving exact directions.

Connect

Algebra’s x is coding’s variable.

⭐ Star quiz

9 questions

Do the worked examples and touch practice first. Then take the quiz without peeking.