Algorithm
Meaning: A step-by-step method to solve a problem.
Example: Making tea is an algorithm.
1) Boil water
2) Add tea leaves
3) Add milk + sugar
4) Serve
Learn all common programming terms (with examples + pictures)
This site explains programming terms with simple meaning, examples, and visual diagrams.
Tip: Use Ctrl+F (search) to find any term fast.
Meaning: A step-by-step method to solve a problem.
Example: Making tea is an algorithm.
1) Boil water
2) Add tea leaves
3) Add milk + sugar
4) Serve
Meaning: Grammar rules of a programming language.
If you break syntax = code wonβt run.
// Wrong (syntax error in Python)
print("Hello"
// Correct
print("Hello")
Meaning: A named box to store data.
// JavaScript
let age = 20;
// Python
age = 20
Meaning: A reusable block of code that does a job.
# Python
def add(a, b):
return a + b
print(add(2, 3))
Parameter: the placeholder name in function definition.
Argument: real value you pass when calling.
# Parameters: a, b
def add(a, b):
return a + b
# Arguments: 5, 10
add(5, 10)
Meaning: Repeat code multiple times.
// JavaScript
for (let i = 1; i <= 5; i++) {
console.log(i);
}
Meaning: Only 2 values: true / false.
is_logged_in = True
is_admin = False
Meaning: A mistake in your code that produces wrong results.
Meaning: Finding + fixing bugs.
Common technique: printing values.
print("x =", x)
Meaning: Code runs but crashes during execution.
# Python runtime error
x = 10
y = 0
print(x / y) # ZeroDivisionError
Meaning: An error that interrupts normal flow.
try:
x = 10 / 0
except ZeroDivisionError:
print("Can't divide by 0")
Meaning: A set of rules for software to talk to other software.
Example: an app requests weather from a weather API.
GET /weather?city=Delhi
200 = OK404 = Not Found500 = Server ErrorImages are embedded via public sources (Unsplash/Wikipedia commons). If you want fully offline images, tell me and Iβll rebuild it with local image files.