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.
An unordered collection of key-value pairs in Python, created with curly braces {}. Keys must be unique and immutable. Values can be any type.
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.
A reusable block of code defined with 'def' that takes parameters, executes instructions, and optionally returns a value.
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.
An ordered, mutable collection of items in Python, created with square brackets []. Supports indexing, slicing, and methods like append() and sort().
A Python file containing reusable code (functions, classes, variables). Loaded with the 'import' keyword. Python's standard library includes hundreds of built-in modules.
Python's package installer. Downloads and installs third-party packages from the Python Package Index (PyPI). Usage: pip install package_name.
A sequence of characters enclosed in quotes (single ' or double "). Strings are immutable in Python. Support indexing, slicing, and methods like .upper(), .lower(), .split().
A named container that stores a data value. Created in Python with simple assignment: name = value. No type declaration required.