0️⃣ Machine Code

6th Grade 💻 Coding

Machine code is the lowest level of instructions: strings of 0s and 1s that the computer carries out directly. All code, in every language, is translated into it in the end.

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

Each machine code instruction is very simple: “move a number from one place to another,” “add two numbers,” “jump to a different instruction.” One line of Python can turn into dozens of these instructions. Long strings of 0s and 1s are very hard for people to read and write, and very easy to get wrong.

In the early days of computers, people programmed almost directly in machine code. Later, languages closer to human language were invented, along with compilers and interpreters that translate from them. That’s why languages like Python are called “high-level languages”: they’re far from the machine and close to people.

For example

  • The Python line print(2 + 3) gets translated into many tiny machine code instructions.
  • Early programmers wrote programs as numbers and fed them into computers on punched cards.

📌 Remember: Machine code = 0s and 1s. All code ends up there.

Quick quiz

  1. What is machine code made of?

  2. Why don’t people write in machine code?

  3. What are languages close to people, like Python, called?

🔎 Ask Thinkapedia another question