Codiqo

Learn

Coding terms, explained simply

Short, clear answers to the questions every beginner asks, each with real code and a free lesson that teaches it properly.

What is a variable?

A variable is a name that holds a value, so your program can remember it and use it later.

What is a string?

A string is a piece of text in a program: letters, digits, spaces and symbols in a row, written between quotes.

What is a boolean?

A boolean is a value that can only be true or false. Programs use booleans to decide what to do.

What is an if statement?

An if statement runs some code only when a condition is true, so a program can make decisions.

What is a loop in programming?

A loop repeats a block of code, either a set number of times or for as long as a condition stays true.

What is an array (or list)?

An array, called a list in Python, keeps many values in order under one name. You get each value by its position, starting from 0.

What is a dictionary in programming?

A dictionary stores pairs of keys and values, so you can look a value up by its name instead of its position.

What is a function in programming?

A function is a named block of code that does one job. You write it once and run it whenever you need it, by calling its name.

What is a class and an object?

A class is a blueprint that describes a kind of thing, and an object is one real thing made from that blueprint, with its own data.

What is recursion?

Recursion is when a function calls itself to solve a smaller piece of the same problem, until the piece is so small the answer is obvious.

What is a pointer?

A pointer is a variable that holds the memory address of another value, so code can find and change that value where it lives.

What is a bug in programming?

A bug is a mistake in a program that makes it crash or do something it shouldn't. Finding and fixing bugs is called debugging.

What is an exception?

An exception is an error that happens while a program is running, like dividing by zero or opening a file that isn't there. You can catch it and handle it instead of crashing.

What is an algorithm?

An algorithm is a clear, step-by-step method for solving a problem. A program is an algorithm written in a language a computer can run.

What is an API?

An API (application programming interface) is a set of rules for how one program can ask another for data or to do something.

What is a compiler?

A compiler turns the code you write into instructions a computer can run. Languages like C, C++, Java and C# are compiled before they run.

Try your first lesson free