What is a programming language?
A programming language is a set of words and rules for writing instructions a computer can run, like Python or JavaScript. Each suits different jobs.
Last updated
In real life
Like human languages: "thank you", "gracias" and "merci" mean the same thing, and Python and JavaScript can tell a computer the same thing.
Try it yourself
The demo shows one task, greeting three customers by name, written in Python, in JavaScript and in plain English. Run either language and you get the same three greetings: different words, same result.
Written in Python
customers = ["Maya", "Tom", "Aiko"]
for name in customers:
print("Hello, " + name + "!")Output
Pick Python or JavaScript and press “Run it”.
Two programming languages, different words and punctuation, the same result. Plain English explains the idea, but a computer needs the exact rules of a programming language to run it.
Programming language vs markup language
A programming language, like Python, can make decisions and repeat steps. A markup language, like HTML, only labels content, such as "this is a heading".
Common questions
Which programming language should a beginner learn?
Python is a common first choice because it reads almost like English. JavaScript is the one to learn if you want to make web pages interactive.
How many programming languages are there?
Hundreds, but only a few dozen are widely used, led by languages like JavaScript and Python.
Where you will use this
Quick check: Programming language
Question 1 of 3