1/28
A vocabulary flashcard set based on key Python technical terms and concepts covered in the Advanced Python Interview Questions guide.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
"pass" Statement
A Python statement that serves as a simple placeholder or no-op in code structures such as functions, classes, loops, conditionals, and exception handling blocks.
Callable
An object in Python that can be invoked like a function using the () operator, including regular functions, methods, classes, built-in functions, and instances that define a call method.
Linear Search
A simple search algorithm, also known as sequential search, that checks elements in a list or array one by one from the beginning until the target element is found or the list is exhausted.
Introspection
The ability of a programming language to examine, analyze, and manipulate its own structures, types, attributes, and objects at runtime.
Mixin
A class in object-oriented programming that provides a single, specific functionality to be inherited by other classes to promote code reusability and modular composition.
CheeseShop
A playful reference in the Python community to a fictional package repository inspired by a Monty Python sketch, representing the official Python Package Index (PyPI).
Virtual Environment
An isolated directory tree that contains its own Python interpreter and installed packages, preventing dependency conflicts between different Python projects.
PEP 8
Python Enhancement Proposal 8, which serves as the official style guide for writing consistent, readable Python code.
Walrus Operator
The assignment expression operator := introduced in Python 3.9.0 that allows assigning a value to a variable as part of an expression.
Python Interpreter
A software program (such as CPython, Jython, IronPython, PyPy, or MicroPython) designed to read, parse, and execute Python source code.
init Method
A special constructor method in Python classes automatically called when an object is instantiated to set the initial state of its attributes.
"self" Parameter
A conventional first parameter in Python instance methods representing the specific instance of the class calling the method.
"is" Operator
An identity operator in Python used to test if two variables reference the exact same object in memory address.
Polymorphism
A principle in object-oriented programming allowing objects of different classes to be treated as objects of a common superclass through method overriding.
Insertion Sort
A simple sorting algorithm well-suited for small datasets with time complexity O(n2) in worst/average cases and O(n) in the best case.
Floyd's Cycle Detection Algorithm
A loop detection technique in a linked list, also known as the "tortoise and hare" algorithm, using a slow pointer moving one step and a fast pointer moving two steps.
Jump Search
A search algorithm for sorted arrays, also known as Block Search, that checks elements in fixed-size blocks of int(n) before performing a linear search in the identified block.
Recursion
A programming technique where a function calls itself with modified input to break down a problem into smaller subproblems until a base case is reached.
Descriptor
A mechanism in Python used to customize attribute access (getting, setting, and deleting) by defining special methods like get, set, or delete.
Dunder Methods
Predefined special or magic methods with double underscores (e.g., init, str, add) that customize object interaction with built-in Python functions and operators.
Closure
A nested function in Python that references and preserves access to variables from its outer enclosing function even after the outer scope has finished execution.
Monkey Patching
The dynamic modification or extension of existing code, classes, or modules at runtime without altering the original source code.
Ternary Operator
A concise conditional expression in Python structured as "value_if_true if condition else value_if_false" that evaluates and returns one of two values based on a condition.
Cython
A programming language superset of Python that adds static typing and compiles Python code into optimized C extensions to improve performance.
Radix Sort
A non-comparative sorting algorithm that sorts numbers digit by digit from the least significant digit to the most significant digit using buckets.
Context Manager
An object in Python defining enter and exit methods to handle safe allocation and cleanup of resources when used with a "with" statement.
Interpolation Search
An adaptive search algorithm for sorted arrays that estimates the position of a target value based on key values rather than strictly bisecting.
Global Interpreter Lock (GIL)
A mutex in the CPython interpreter that prevents multiple native threads from executing Python bytecodes simultaneously.
Method Resolution Order (MRO)
The order or hierarchy Python follows to search for methods in a class structure, particularly in multiple inheritance scenarios.