2021
, Definitions
Algorithm
A set of steps to accomplish a task.
Compile
Program
A set of instructions given to a computer, corresponding to
an algorithm to solve a problem.
Interpreter
Integrated Development
Environment (IDE)
Function
A common task/named sequence of instructions that
perform a collective purpose, that we can reuse.
e.g., print.
Argument/Parameters
Items or values that are sent into a function.
e.g., “Hello World”
,Syntax Error
When your program does not conform to the structure
required. and does not start at all.
Logic Error
When your program runs but does not work as expected.
Escape Sequences
Special characters that cannot be represented easily in the
program.
Literal
Fixed character sequences or numbers written into a
program and used directly.
Identifier
A word consisting of letters, numbers, and _ characters, used
to name parts of the program, like functions and variables.
Reserved Word
Type of identifier that has special meaning, and cannot be
used by programmers for other purposes.
Variable
Sections/Containers of memory/data, named using the rules
for identifiers and defined by assigning an initial value to
them.
, Comment
A part of code (starting after a #) that is ignored by Python and
is intended to help a human reader.
Expression
An arithmetic expression containing variables, numeric
literals, and arithmetic operators.
Syntax
The fundamental rules of programming language, similar to
the spelling and grammar rules of natural languages.
Boolean
A binary value that has only two possible states, either True or
False; one of the fundamental types in Python.
Conditional/Relational Expression
An expression that compares values using conditional
operators (<, >, <=, >=, ==, !=), and evaluates to a Boolean.
Boolean Expression
An expression that combines Boolean operands using
Boolean operators (and, or, not), and evaluates to a Boolean.
Iteration
Executing the same basic task or set of statements multiple
times.