1. Why should we learn a programming language?
Programming languages are like a translator (bridge) between humans and computers.
-
Computers understand only machine language (0s and 1s).
-
Humans understand languages like Hindi, English, etc.
-
It is very difficult for humans to write instructions in only 0s and 1s.
-
Computers cannot understand human languages directly.
So, we need a programming language that:
-
Converts human instructions into machine language.
-
Helps the computer understand what we want it to do.
This translation is done by:
-
Compiler
-
Interpreter
So, programming languages help humans and computers communicate with each other.