A To Z Glossary
A To Z Glossary
Glossary
We will use many programming terms in the course and explain them
accordingly. Below is a glossary of all the terms. You don't need to read the
glossary now, but you can refer to it whenever you want to know what a term
means:
A
Algorithm: A step-by-step procedure for solving a problem or performing a
task.
Array: The term that is equivalent to a Python list, but used in other
languages such as Javascript. See "list" to learn what a Python list is.
Example: x = 10
B
Boolean: A data type representing True or False .
Example:
for i in range(10):
if i == 5:
break
C
Class: A blueprint for creating objects that encapsulate data and methods.
Example:
class Dog:
def __init__(self, name):
self.name = name
Example:
if x > 5:
print("x is greater than 5")
CSV (Comma Separated Values): A file format where data is stored in rows
and columns, with values separated by commas.
Example: A file with rows like name,age and John,30 is in .csv file.
D
Data Type: A classification that specifies the type of data a variable can
hold, such as integers, strings, lists, etc. Each data type determines what
operations can be performed on the data.
Example:
Example:
def greet():
print("Hello")
E
Exception: An error that occurs during program execution.
"Hello" + 10
Example: When you press "Run" in your IDE, it executes your code.
Example: 3 + 4 * 2
F
File: A collection of data or information stored on a computer.
Example:
Example:
G
Git: A version control system that allows developers to track changes in
their code, collaborate with others, and manage different versions of their
projects.
Example: You can initialize a new Git repository with the command git
init .
I
IDE (Integrated Development Environment): A software application that
provides tools for writing and testing code.
Example:
if x == 10:
print("x is 10")
Example:
if True:
print("This is indented")
Input: Data provided to a program by the user, usually via the keyboard on a
console/terminal.
Example:
Example:
for i in range(3):
print(i)
J
JSON (JavaScript Object Notation): A format for storing and exchanging
data, similar to dictionaries in Python.
Example:
for i in range(5):
print(i)
M
Method: A function that is associated with an object and typically operates
on its data.
Example: fruits.append("orange")
O
Object: An instance of a class.
my_dog = Dog("Buddy")
class Dog:
def __init__(self, name):
self.name = name # Attribute
my_dog = Dog("Buddy")
print(my_dog.bark()) # Output: Buddy says woof!
Example:
print("Hello, World!"
The above code will display the output "Hello, World!" in the console.
P
Parameter: A variable listed in a function's definition, used to receive
arguments.
def greet(name):
print(f"Hello, {name}")
Example:
def my_function():
pass
Pip: The package installer for Python. It allows users to install and manage
additional libraries and dependencies that are not part of the Python
standard library.
R
Repository: A storage location for software packages, where files,
including source code, documentation, and metadata, are managed using
version control systems like Git.
Requirements File: A text file (usually named requirements.txt ) that lists the
libraries required for a Python project. It allows for easy installation of all
specified packages using pip.
requests==2.25.1
numpy>=1.20.0
Example:
In the above example, the return statement exits the function and
returns the sum of a and b .
S
Script: A file containing a sequence of Python statements that can be
executed.
Example: x = 5
Syntax Error: An error that occurs when the syntax rules of the language
have not been followed.
Running the code above will produce a syntax error because the syntax
rules require string Alice to be inside two quotes (i.e., 'Alice' )not just
one.
T
Terminal: A text-based interface that allows users to interact with the
operating system by entering commands. It provides a way to execute
Type: The category of data a value belongs to, such as integer, string, or
list.
V
Value: The data stored in a variable or used in an expression.
Example: age = 25
Version Control: A system that keeps track of changes to code, often used
in collaborative environments.
W
While Loop: A loop that continues as long as a condition is true.
Example:
while x < 5:
x += 1