GOCO IDE
  • Home
  • Docs
Download

Documentation

Chapter 1: BasicsChapter 2: Variables & TypesChapter 3: Input and OutputChapter 4: Math and OperatorsChapter 5: Making DecisionsChapter 6: Repeating Parts (Loops)Chapter 7: FunctionsChapter 8: Arrays (Lists)Chapter 9: Standard Libraries

8. Lists of Items: Arrays

8.1 Creating a List

An Array is a big box that holds a list of items of the same kind. Every spot in the list has a number, starting from 0. You use [ ] brackets.

Import arrays.
Number[] luckyNumbers = [7, 14, 21].
Displaynl(luckyNumbers[0]).
luckyNumbers[1] = 99.
Sentence[] pets = ["Dog", "Cat", "Bird"].

8.2 Lists Inside Lists

You can even put lists inside other lists. It works like rows and columns in a spreadsheet. This is called a 2D Array.

Import arrays.
Number[][] grid = New Number[2][3].
grid[0][0] = 5.
grid[1][2] = 10.
Displaynl(arrays.Length(grid)).

Contact Us

+91 93269 63378kancorp.inc@outlook.com
📍KanCorp Inc, India

Quick Links

  • Home
  • Docs
  • Download IDE

Stay Updated

Subscribe to get updates on new features and learning resources!

© 2026GOCO IDE™. All rights reserved. Made with ❤️