1/24
Flashcards covering key concepts and definitions from the introduction to Python programming.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Program
A sequence of instructions that specifies how to perform a computation.
Input
Get data from the keyboard, a file, or some other device.
Output
Display data on the screen or send data to a file or other device.
Syntax
The structure of a program and the rules about that structure.
Bugs
Programming errors.
Debugging
The process of tracking down and correcting programming errors.
Variables
Names that represent values stored in computer memory.
Function
A block of organized, reusable code used to perform a single, related action.
Tuple
An immutable data structure used to store multiple items in a single variable.
Dictionary
An unordered collection of items, each with a key/value pair.
List
A versatile data type that can store multiple items in a single variable.
Data Types
Different types of values that a variable can hold (e.g., integers, strings, lists).
Boolean Expression
An expression that evaluates to produce a Boolean value.
Implicit Type Conversion
Automatic conversion of one data type to another by Python.
Explicit Type Conversion
Manually converting one data type to another using predefined functions.
While Loop
Used to iterate over a block of code as long as the condition is true.
For Loop
Used to iterate over a sequence like a list, tuple, or string.
Control Flow
The order in which code executes in a program.
Mutability
The ability to change an object; lists are mutable while tuples are immutable.
Slicing
Accessing a range of items in a list using the slicing operator.
Set
An unordered collection of unique items that are mutable.
Set Union
A set of all elements from both sets.
Set Intersection
A set of elements that are common to both sets.
Set Difference
Elements that are in one set but not in another.
Set Symmetric Difference
Elements in either set but not in both.