1/11
week 1
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What are data structures?
Data structures are specialized formats for organizing, processing, and storing data efficiently in a computer. They enable efficient data retrieval and manipulation, and include arrays, linked lists, stacks, queues, trees, and graphs.
What are the five essential data structures in Python?
Lists, Tuples, Dictionaries, Sets, and Strings.
What are Lists in Python?
Lists are ordered and mutable collections that can hold mixed data types and allow for dynamic resizing.
What are Tuples in Python?
Tuples are ordered and immutable collections that cannot be changed after creation, making them ideal for fixed records.
When should you use Tuples over Lists?
Use Tuples when data represents a fixed record or needs to be hashable, and Lists when dynamic element manipulation is required.
What operations can you perform with Dictionaries?
Fast lookups, merging data using .update() or | operator, and nesting structures.
What are Sets in Python?
Sets are unique and unordered collections that eliminate duplicates and support mathematical operations.
what is the significance of using Sets?
Sets help in deduplication, fast membership checks, data validation, and feature selection.
What are the key operations performed on Strings in Python?
Slicing, splitting, formatting, and cleaning.
Why is selecting the right data structure important?
Choosing the right data structure can significantly affect the performance of your code
What are Dictionaries in Python?
Dicionaries store data as key-value pairs, allowing for fast lookups by key, with unique and immutable keys.
JSON
Javascript Object Notation : light weight human readable format used for storing and transporting data