>GOCO IDE
  • Home
  • Docs
Download
Documentation
Documentation
01Chapter 1: Basics02Chapter 2: Variables & Types03Chapter 3: Input and Output04Chapter 4: Math and Operators05Chapter 5: Making Decisions06Chapter 6: Repeating Parts (Loops)07Chapter 7: Functions08Chapter 8: Arrays (Lists)09Chapter 9: Standard Libraries
Docs2. Variables and Data Types

2. Variables and Data Types

Learn Variables and Data Types through beginner-friendly explanations, working GOCO examples, and their expected output.

2.1 What are Variables?

Variables are like empty boxes where you can keep information. Each box has a name so you can find it later. Each box also has a 'type' that tells the computer what kind of thing is inside.

goco
Number age = 15.
Sentence name = "Alex".
Displaynl(name).
Displaynl(age).

2.2 The Four Box Types

We have four kinds of boxes you can use: Number (for all numbers), Letter (for one single character), Sentence (for words and text), and Logic (for True or False values).

goco
Number myAge = 12.
Number piValue = 3.14.
Letter myGrade = 'A'.
Sentence myPet = "Dog".
Logic likePizza = True.
// You can create a box without filling it right away.
Number emptyBox.
Previous1. The Basics of GOCO
Next3. Talking to the User
GGOCO IDE

Write real code, compete in ranked battles, and level up your problem solving in one editor.

Stay updated

Get product updates and new learning resources. No spam.

Product

  • Home
  • Docs
  • Download IDE

Account

  • Sign in
  • Create account
  • Add a review
  • Send a suggestion

Contact

+91 93269 63378kancorp.inc@outlook.com
KanCorp Inc, India
© 2026GOCO IDE™. All rights reserved.Made withby KANCorp Inc.