What is code?
Writing code is how you create software, like apps and websites, for computers. Code is a set of instructions that a computer can follow.
In order for computers to understand instructions you write, you need to use a language the computer knows. These languages are called programming languages. Here is an example of some code, written in the programming language called Python:
print('Hello humans.')
total = sum([1, 2, 23, 4, 32])
print('Sum:', total)
Output from the code above:
Hello humans.
Sum: 62
In the example, there are 3 instructions the computer follows, aka 3 lines of code. The first line tells the computer to display the text Hello humans. The second line adds 1+2+23+4+32, and stores it in memory, to a variable called total. The third line displays the text Sum: 62, where total references the value stored previously.
You can run and edit this code yourself here.