Studyfin Studyfin ✨ Sign up free

Input & output basics

Grade 3 · Coding · Free lesson

Hi there! I am Studyfin. Today we will learn how computers take in and show information!

Computers need our help to work. We give them clues, and they show us answers. This is called input and output.

banner

An input is information you put into a computer. You can press a key on your keyboard. You can also click a mouse.

Input: Pressing a Key A

An output is what the computer shows or does. It can shine a light. It can also make a sound or show a picture.

Output: Screen Light Hello!
✏️ Worked example

Let us design a program for a toy dog. When you pet the dog's head, it should bark. How do we plan the input and output?

  1. First, find the input. The input is what we do to the toy. We pet its head.
  2. Next, find the output. The output is what the toy does back. It barks.
  3. Then, write the rule. If the head sensor gets a touch, then play a bark sound.
  4. Last, test the program. Touch the sensor and listen for the happy bark!
enter
Want the full interactive lesson — quiz, animations, and Finn cheering them on?

More Coding lessons