×

go · level 1 · unit 1 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

is a list of instructions for a computer.

Code is instructions written down for a computer. A set of instructions that does one job, like a recipe for toast, is called a .

The computer follows a program exactly, starting at the top line and working down. It never guesses what you meant. It does what you wrote.

We will write our code in Go. Every Go program comes in the same frame, like a letter in an envelope. Your instructions go between the curly brackets { }. When you it, the computer starts following them.

package main
import "fmt"
func main() {
	fmt.Println("Hello!")
}

Press run and the computer says Hello! back, and the next lesson explains every line of the frame.