1/16
Flashcards covering key programming concepts, particularly focusing on dictionaries, sets, and related operations.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Dictionary
A collection of key-value pairs that allows for mutability, meaning you can change, add, or remove items.
Set
A data structure that contains unique elements and does not allow duplicates, while also being mutable and unordered.
Tuple
An immutable sequence of elements that cannot be changed after it is created.
JSON
JavaScript Object Notation, a lightweight data interchange format that uses key-value pairs and is often used for transmitting data in web applications.
Key-Value Pair
A fundamental concept in dictionaries where a unique key is associated with a particular value.
Index
A numerical representation of an item's position in a list or array, which is not applicable in a set.
Union
A set operation that combines elements from two sets, resulting in a new set containing all unique elements.
Intersection
A set operation that produces a new set containing only the elements that are present in both sets.
Difference
A set operation that returns the elements that are in one set but not in another.
Mutable
Describing an object whose state can be modified after it is created.
Immutable
Describing an object that cannot be altered after it has been created.
Function
A block of organized code that performs a specific task, often taking inputs and providing outputs.
Length
A function that returns the number of items in a collection such as a list or a dictionary.
Clear
A method used to remove all items from a dictionary.
Del
A statement used to delete a variable or an item from a structure, such as a dictionary.
Curly Bracket
The symbol {} used to define a dictionary in programming languages like Python.
Square Bracket
The symbol [] used to denote a list in programming languages.