Answered Plainly

Top 10 Programming Languages โ€” A Cheat Sheet for Kids

A programming language is how people give orders to a computer. The computer does exactly what the code says โ€” nothing more, nothing less. Different languages are good at different jobs, just like a hammer and a paintbrush are both tools but do different work.

Here are ten languages you will hear about. For each one: what it is, what people make with it, one tiny real example, and how hard it is to start. The examples come from each language's own official lessons. Tap the Copy button to copy an example, or select the code with your finger or mouse and copy it by hand.

Pick your grade:

Elementary: How to Use This Cheat Sheet

Start with the friendly three

If you have never coded before, start with Scratch, Python, or HTML & CSS. Scratch has no typing at all. Python's words look almost like plain English. HTML & CSS lets you see your work on the screen right away.

The rest can wait โ€” and that is fine

Some languages on this page are for later, when you are older and have coded a bit. Their first programs need extra setup words before anything fun happens. There is no rush. Every coder alive started with one first language.

What the examples are

Each example is a tiny piece of real code, copied from that language's own official lessons. Most of them print the words "Hello World" โ€” coders love making a new language say hello first. It is a tradition!

The 10 Languages

1. Python

What it is: A friendly language whose code reads almost like plain English sentences.

People make: Games, websites, science tools, robots โ€” almost anything.

A tiny real example (from Python's own tutorial โ€” it stores two lines of words, then prints them):

s = 'First line.\nSecond line.'
print(s)

Starting out: One of the easiest languages to start with. This set of guides has Python pages โ€” start there.

2. JavaScript

What it is: The language that adds interactivity to websites โ€” it makes web pages move, answer clicks, and change their words.

People make: Browser games, working buttons, pages that change while you look at them.

A tiny real example (from MDN's JavaScript basics โ€” it finds a page's big heading and changes its words):

const myHeading = document.querySelector('h1');
myHeading.textContent = 'Hello world!';

Starting out: Easy to start โ€” it already lives inside your web browser. This set of guides has a JavaScript First Steps page.

3. HTML & CSS

What it is: Two partners. HTML builds a web page โ€” its headings, words, and lists. CSS paints the page โ€” its colors and sizes. A true fact from MDN: HTML is not a programming language; it is a markup language, a way of marking what each part of a page is.

People make: Every web page you have ever seen.

A tiny real example (the first line is HTML from MDN's HTML basics; the second is CSS from MDN's CSS basics โ€” it would paint that paragraph red):

<p>My cat is very grumpy</p>
p { color: red; }

Starting out: The easiest place to see your work fast. This set of guides has an HTML & CSS First Steps page.

4. Scratch

What it is: A programming language made of colorful blocks that you snap together like puzzle pieces. There is no typing.

People make: Interactive stories, animations, games, music, and art.

What a first example looks like: Scratch code is pictures, not typed words, so there is no code to copy here. A first Scratch program is a stack of blocks like this: a when green flag clicked block on top, then a move block, then a play drum block snapped under it, then a say block. Click the green flag, and the cat moves, plays a drum sound, and talks.

Starting out: The easiest of all โ€” spelling can never break your code. This set of guides has a Scratch First Steps page.

5. Lua

What it is: A small, fast language that tucks inside bigger programs and games to tell them what to do.

People make: Game parts inside big games. Roblox games are built with Lua's close cousin, Luau โ€” the Lua page in this set of guides explains that story.

A tiny real example (the very first program in Lua's own book, Programming in Lua):

print("Hello World")

Starting out: Easy โ€” the words are few and plain. This set of guides has a Lua First Steps page.

6. Java

What it is: A careful language with lots of rules, used for big, serious programs.

People make: Large apps and systems that many people use at the same time.

A tiny real example (from Oracle's Java tutorials โ€” the whole first program; the line in the middle does the printing):

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}

Starting out: Harder. Look at all those setup words before the one fun line. This is a later language.

7. C++

What it is: A fast, powerful language with lots of symbols, used where speed matters most.

People make: Games and the deep, speedy parts of computers.

A tiny real example (from the C++ FAQ at isocpp.org โ€” printed exactly the way that page prints it, extra spaces and all; spaces do not change what code does):

#include <iostream>

int main ()
{
  std :: cout << "Hello world!\n" ;
}

Starting out: The hardest language on this page. Save it for later โ€” much later is fine.

8. C#

What it is: Microsoft's language for building programs. Its name is said "C sharp," like the music note.

People make: Computer programs of all sizes, and many games.

A tiny real example (Microsoft's whole first C# lesson is this one line โ€” it writes a line of words on the screen):

Console.WriteLine("Hello, World!");

Starting out: In the middle. Friendly tools help you, but there is some setup to learn first.

9. Swift

What it is: Apple's language for building apps.

People make: iPhone and iPad apps.

A tiny real example (from The Swift Programming Language book โ€” the second line starts with //, so it is a note for people, and the computer skips it):

print("Hello, world!")
// Prints "Hello, world!"

Starting out: In the middle. One line can do a lot โ€” the example above is a complete program โ€” but you need Apple's tools to build apps.

10. SQL

What it is: A language for asking questions to a database โ€” a giant, tidy keeper of lists and facts. Its name is often said "sequel."

People make: It does not build apps. It finds facts fast: every name in a list, every high score, every book in a library's records.

A tiny real example (from the official PostgreSQL guide โ€” PostgreSQL is one program that speaks SQL; its example table is named weather, and the star means "all the columns," all the kinds of facts in the table):

SELECT * FROM weather;

Starting out: Different from the others โ€” you ask for what you want instead of giving step-by-step orders.

Try It: Match the Language

1. Which language would you use to make a web page's button do something when clicked? โ€” JavaScript. It is the language of web pages.

2. Which language has no typing at all? โ€” Scratch. You snap blocks together instead.

3. Which language would you use to ask a giant list of facts a question? โ€” SQL. Asking questions is its whole job.

4. Which two languages have a first example of just one line? โ€” Lua and C# (and Swift's example is one working line plus a note line).

Words to Know

Programming language: A set of words and rules people use to give orders to a computer.

Code: The orders themselves โ€” the lines a programmer writes.

Run: To make the computer follow the code. "Run the program" means "start it."

Browser: The program you use to look at web pages, like the one you are using now.

Database: A giant, tidy keeper of lists and facts that a computer can search very fast.

Blocks: In Scratch, the puzzle-shaped pieces of code that snap together.

Markup language: A way of marking what each part of a page is โ€” heading, paragraph, list. HTML is one.

Keep Exploring

This set of guides also has Python pages (how to install Python and take your first steps), and First Steps pages for JavaScript, HTML & CSS, Scratch, and Lua, plus a page about the languages you will meet later โ€” Java, C++, C#, Swift, and SQL. Grown-ups who want every detail can read each language's own official lessons, listed below.

Sources

Python: docs.python.org โ€” The Python Tutorial, chapter 3, "An Informal Introduction to Python" (the stored-words and print example). JavaScript, HTML, and CSS: MDN Web Docs, developer.mozilla.org โ€” "JavaScript basics," "HTML basics," and "CSS basics" (the heading example, the grumpy cat paragraph, the red-paragraph rule, and "HTML is not a programming language; it is a markup language"). Scratch: scratch.mit.edu โ€” "Getting Started with Scratch" tips, https://scratch.mit.edu/help/studio/tips/howto/get-started-intro (Start Moving, Add a Sound, Say Something, Green Flag steps) and the official Getting Started Guide ("a programming language that lets you create your own interactive stories, animations, games, music, and art"; "you snap together blocks"). Lua: lua.org โ€” Programming in Lua, chapter 1, "Getting Started" (the first program, print("Hello World")). Luau: https://luau.org/getting-started/ ("Luau is a fast, small, safe, gradually typed embeddable scripting language derived from Lua 5.1... also integrated with Roblox Studio"). Java: docs.oracle.com โ€” The Java Tutorials, "A Closer Look at the 'Hello World!' Application" (the HelloWorldApp program; every application must contain a main method). C++: https://isocpp.org/wiki/faq/newbie (the standard library example, printed with that page's own spacing). C#: Microsoft Learn, "Hello World โ€” Introductory tutorial, A tour of C#" (Console.WriteLine("Hello, World!");). Swift: The Swift Programming Language, "A Swift Tour," at docs.swift.org / swift.org (print("Hello, world!") โ€” "in Swift, this line of code is a complete program"). SQL: https://www.postgresql.org/docs/current/tutorial-select.html ("To retrieve data from a table, the table is queried. An SQL SELECT statement is used to do this"; the weather table example; the star is "a shorthand for 'all columns'").

Checked against these official sources on November 7, 2026.

Related guides: Languages You Will Meet Later, Parts of Speech Cheat Sheet, The Water Cycle Cheat Sheet, Python Cheat Sheet and Why Does the Ocean Have Waves.