⌨️ Code

3rd Grade 💻 Coding

Code is the text programmers write in a programming language — the instructions themselves. When people say “writing code,” they mean writing software.

Free · US Letter · no sign-up
Google Classroom Save to Pinterest Email me

Code looks like a mix of English words, numbers and symbols like parentheses and quotation marks. For example, print("Hello") is a line of code in Python. The code people write and read is also called “source code,” to tell it apart from the version the computer actually runs.

Good code isn’t just code that works — it’s also code that’s easy to read, with clear names, comments in the right places and a tidy layout. Programmers read other people’s code all the time and improve it together. The word “code” comes from its older meaning: a cipher, or a system of symbols.

For example

  • In Scratch, the “code” is the blocks snapped together; in Python, it’s the lines of text.
  • Noah opened the code for his game after a month and was glad he’d written comments explaining each part.
  • When programmers say “the code doesn’t work,” they mean there’s a mistake — a bug — in the written instructions that needs to be found and fixed.

📌 Remember: Code = the written instructions. A programmer writes code; a computer runs it.

Quick quiz

  1. What is code?

  2. What do we call the code that people write and read?

  3. Besides working, what does good code do?

🔎 Ask Thinkapedia another question