1/23
These flashcards cover key vocabulary and concepts from the Python Primer chapter, focusing on definitions and important programming terms used in Python.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Python Interpreter
A piece of software that executes commands written in Python.
Object
An instance of a class, which can hold data and has associated methods.
Identifiers
Names given to elements in Python, which must follow specific rules.
Assignment Statement
A command that assigns a value to a variable, like 'temperature = 98.6'.
Mutable
An object whose state can be modified after it is created.
Immutable
An object whose state cannot be changed once it has been created.
Compiling
The process of translating code written in a programming language into machine code.
Function Call
An expression that invokes a function, allowing execution of code contained within it.
Error Handling
The process of responding to and managing the occurrence of errors in a program.
Loop
A control structure that allows repeated execution of a block of code.
Conditional Expression
The syntax 'expr1 if condition else expr2' for evaluating a value based on a condition.
Comprehension Syntax
A concise way to create lists, sets, or dictionaries from existing iterables.
Namespace
A container that provides a way of grouping identifiers and prevents naming conflicts.
Generator
A special type of iterator in Python that uses 'yield' to produce values lazily.
Scope
The region of a program where a particular variable is accessible.
Python Module
A file containing Python code that can define functions, classes, and variables.
Decorator
A special type of function that modifies the functionality of another function.
Lambda Function
An anonymous function expressed as a single statement, defined using the 'lambda' keyword.
Try-Except Block
A structure that allows for handling errors gracefully in Python.
List Comprehension
A compact way to process all or part of a collection and return a list.
Input/Output Functions
Functions for reading from and writing to the console or files.
Dynamically Typed
A feature of Python where variable types are determined at runtime.
Tuple
An immutable sequence type in Python.
Dictionary
A mutable mapping type that associates unique keys with values.