Computers & Coding

Parts of a computer, step-by-step instructions, loops and staying safe online

Skills

  • Parts of a computer
  • Using devices carefully
  • What is an algorithm?
  • Putting steps in order
  • Fixing mistakes — debugging
  • Loops — doing things again
  • Passwords are private
  • Being safe and kind online

Lessons

Parts of a computer

A computer has parts that each do a job. The screen shows pictures and words. The keyboard types letters, and the mouse moves the pointer and clicks. Examples: 🖥️ Screen → shows what the computer is doing; ⌨️ Keyboard → types letters and numbers; 🔊 Speakers → play sounds and music. Tip: Point to each part of a computer and say its name!

Using devices carefully

Computers and tablets can break easily. Hold them gently with two hands. Keep food and drinks far away. Examples: 🙌 Carry a tablet with two hands; 🧼 Use clean, dry hands; 🥤 Keep cups and snacks away from the keyboard. Tip: Always ask a grown-up before you use a device.

What is an algorithm?

An algorithm is a list of steps, in order, to finish a job. Computers follow algorithms exactly. People use them every day too! Examples: 🧼 Washing hands → wet, soap, scrub, rinse, dry; 🥪 Making a sandwich → bread, spread, bread on top. Tip: Say the steps for brushing your teeth — that's an algorithm!

Putting steps in order

Steps must go in the right order, called a sequence. If the steps get mixed up, the job won't work. Examples: 🌱 Plant a seed → dig a hole, drop in the seed, cover it, water it; 🧦👟 Socks first, then shoes — not shoes, then socks!. Tip: Use the words first, next, then and last.

Fixing mistakes — debugging

A bug is a mistake in the steps. Debugging means finding the mistake and fixing it. Then you try again to check it works. Examples: Steps say 'shoes, then socks' → bug! Fix: socks, then shoes; Robot turned right but needed left → change one arrow and test again. Tip: Mistakes help coders learn — find it, fix it, try again!

Loops — doing things again

A loop repeats steps again and again. Instead of writing a step many times, you say 'repeat.' It saves time! Examples: 👏🦶 👏🦶 👏🦶 → Repeat 3 times: clap, stomp; Step, step, step, step → Repeat 4 times: step forward. Tip: Look for things that happen again and again — that's a loop!

Passwords are private

A password is a secret that locks your account, like a key. Keep it private. Only share it with your parent or guardian. Examples: A friend asks for your password → 'Sorry, it's private!'; Make a long, hard-to-guess password with a grown-up; Done on a shared computer → ask a grown-up to help you log out. Tip: Not even your best friend needs your password!

Being safe and kind online

Use kind words online, just like in person. Never share your name, address or school online. If something makes you worried, stop and tell a grown-up. Examples: A stranger sends you a message → don't answer, tell a grown-up; Only write things you would say to someone's face; A scary or strange picture pops up → close it and tell a grown-up. Tip: When you're not sure, ask a grown-up first!

For parents