Glossary - Python Programming Fundamentals
Glossary - Python Programming Fundamentals
Term Definition
Comparison operators in Python are used to compare values and return Boolean
Comparison
results (True or False), including operators like == (equal),!= (not equal), < (less
operators
than), > (greater than), <= (less than or equal to), and >= (greater than or equal to).
Conditions in Python are used to make decisions in code, executing specific blocks of
Conditions
code based on whether a given expression evaluates to True or False.
For loops in Python are used for iterating over a sequence (such as a list, tuple, or
For loops string) or other iterable objects, executing a set of statements for each item in the
sequence.
Global variables in Python are variables defined outside of any function or block and
Global variable
can be accessed and modified from any part of the code.
about:blank 1/2
3/10/25, 7:32 PM about:blank
Term Definition
Local variables in Python are variables defined within a specific function or block of
Local variables
code and are only accessible within that function or block.
Logic operators in Python are used to perform logical operations on Boolean values,
Logic operators
including operators like and (logical AND), or (logical OR), and not (logical NOT).
Loops in Python are constructs for repeating a block of code, enabling the execution
Loops
of the same code multiple times.
The range function in Python generates a sequence of numbers that can be used for
Range function iterating in a loop and is typically used as range (start, stop, step), where it creates
numbers from start to stop-1 with the given step increment.
The "scope of a function" in Python refers to the region of code where a variable
Scope of function
defined within that function is accessible or visible.
Sequences in Python are ordered collections of items that can include data types like
Sequences
strings, lists, and tuples, allowing for indexing and iteration.
In Python, "explicitly" means to state something clearly and directly, leaving no room
Syntax
for ambiguity or implicit interpretation.
While loops in Python are used to repeatedly execute a block of code as long as a
While loops
specified condition is true.
about:blank 2/2