Skip to content

Python Programming Glossary

10 essential terms — because precise language is the foundation of clear thinking in Python Programming.

Showing 10 of 10 terms

A data type with only two possible values: True or False. Used in conditions, comparisons, and logic operations.

Related:ConditionalComparison Operator

An unordered collection of key-value pairs in Python, created with curly braces {}. Keys must be unique and immutable. Values can be any type.

Related:ListKey-Value PairJSON

A language feature where variable types are determined at runtime rather than declared in code. Python is dynamically typed -- you write x = 5, not int x = 5.

Related:VariableData TypeStatic Typing

A reusable block of code defined with 'def' that takes parameters, executes instructions, and optionally returns a value.

Related:ParameterReturn Statementdef

Whitespace at the beginning of a line that defines code blocks in Python. Required (not optional) after if, for, while, def, class, and other block statements. Standard is 4 spaces.

Related:Code BlockSyntaxError

An ordered, mutable collection of items in Python, created with square brackets []. Supports indexing, slicing, and methods like append() and sort().

Related:IndexSliceDictionary

A Python file containing reusable code (functions, classes, variables). Loaded with the 'import' keyword. Python's standard library includes hundreds of built-in modules.

Related:importpipPackage

Python's package installer. Downloads and installs third-party packages from the Python Package Index (PyPI). Usage: pip install package_name.

Related:PyPIModulePackage

A sequence of characters enclosed in quotes (single ' or double "). Strings are immutable in Python. Support indexing, slicing, and methods like .upper(), .lower(), .split().

Related:f-stringData Type

A named container that stores a data value. Created in Python with simple assignment: name = value. No type declaration required.

Related:Data TypeAssignmentDynamic Typing
Python Programming Glossary - Key Terms & Definitions | PiqCue