Argument | A value passed to a function when it is called. |
Class | A blueprint for creating user-defined objects with attributes and methods. |
Comprehension | Concise syntax for creating sequences, e.g., list comprehensions: [x for x in range(5)] . |
Decorator | A function that modifies the behavior of another function or method using @ syntax. |
Dictionary | A collection of key-value pairs: {'key': 'value'} . |
Exception | An error detected during execution that can be handled with try /except . |
Function | A block of reusable code defined using the def keyword. |
Generator | A function that uses yield to produce a sequence of values lazily. |
Immutable | Describes types that cannot be changed after creation (e.g., tuple , str , int ). |
Import | Statement used to bring modules and their functions into the current namespace. |
Indentation | Whitespace that defines block structure in Python code. It replaces curly braces used in other languages. |
Iterable | Any object capable of returning its elements one at a time, e.g., lists, strings, files. |
Iterator | An object representing a stream of data that implements the __next__() method. |
Lambda | An anonymous function defined with the lambda keyword. |
List | An ordered, mutable sequence of items: [1, 2, 3] . |
Module | A file containing Python definitions and statements, typically ending in .py . |
Object | An instance of a class. Almost everything in Python is an object. |
Package | A directory containing an __init__.py file and one or more modules. |
Parameter | A variable in a function definition that accepts a value when the function is called. |
Set | An unordered collection of unique elements: {1, 2, 3} . |
Slice | A way to extract parts of sequences using [start:stop:step] syntax. |
String | A sequence of Unicode characters: "hello" or 'hello' . |
Tuple | An immutable sequence of elements: (1, 2, 3) . |
Variable | A name that refers to a value stored in memory. |
Virtual Environment | An isolated Python environment for managing dependencies separately from the global installation. |
Yield | A keyword used in generator functions to return a value and suspend function state. |