1/20
Practice vocabulary flashcards covering fundamental Python concepts, data types, package management, file handling, and data structures.
Tuple
An immutable sequence in Python that can nevertheless contain mutable objects, such as lists.
List comprehension
A structure in Python that allows the creation of a new collection based on an existing one by applying an expression to each element.
os module
A Python Standard Library module used to interact with the operating system, enabling operations such as reading or writing files, deleting files, and running system commands without external installation.
Heap
The data structure most suitable for implementing a priority queue.
pip
The tool used to manage installations and install Python packages from the Python Package Index (PyPI).
'a' mode
The file mode used in Python to append data to an existing file without overwriting its contents.
String literal
A representation of text data in Python that can be enclosed in either single quotes (') or double quotes (").
all()
A built-in Python function that checks if all elements in an iterable are True.
Mutable objects
Objects that can be changed after creation, such as lists and dictionaries.
requirements.txt
The file typically used to list the dependencies of a Python project for installation via pip.
numpy
A Python package commonly used for numerical operations and array manipulations.
init
The method automatically called when an object is created from a class, used to initialize class attributes.
try…except block
A Python construct used to handle exceptions and prevent program crashes.
Balanced Binary Search Tree Search Complexity
The time complexity of searching for an element in a balanced Binary Search Tree (BST), which is O(logn).
pip uninstall
The command used to uninstall an installed Python package using pip.
Recursion
A technique in which a function calls itself to solve a smaller instance of a problem.
Dictionary comprehension
A concise way to create dictionaries in Python using expressions and loops.
zip()
A built-in function in Python that combines elements from multiple iterables into tuples.
with open() statement
A Python statement for file operations that ensures the file is automatically closed after the block of code is executed.
None
A special literal in Python used to represent the absence of a value.
import statement
A statement used to include a module or package in a Python script.