AI Vietnam - Step Into List Data Structure

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Flashcards to assist in understanding key vocabulary and concepts related to List Data Structures as taught in the AI Vietnam course.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

Container

Objects that hold multiple values; help in storing, organizing, and accessing data efficiently.

2
New cards

List

An ordered, mutable collection that can contain duplicate values and allows indexing.

3
New cards

Ordered

Items in a List that maintain their arrangement based on their insertion order.

4
New cards

Mutable

The capability of a List to be modified after its creation.

5
New cards

Indexable

The ability to access elements in a List via their positions.

6
New cards

Heterogeneous

Describes a List that can contain items of multiple different types.

7
New cards

Iterable

An object that can be iterated over, such as a List.

8
New cards

List comprehension

A concise way to create Lists by transforming one iterable into another.

9
New cards

Slicing

The process of extracting a portion of a sequence from a List.

10
New cards

.append()

List method that adds a single element at the end.

11
New cards

.insert()

List method that adds an element at a specified index.

12
New cards

.remove()

List method that removes the first occurrence of specified value.

13
New cards

.pop()

List method that removes an element at a given index and returns it.

14
New cards

.clear()

List method that removes all items from the list.

15
New cards

2D List

A List of Lists, which allows for a matrix-like data structure.

16
New cards

Indexing

Accessing an element based on its position in a List.

17
New cards

Zero-based indexing

Indexing method where the first element is at index 0.

18
New cards

Row

A horizontal grouping of items in a 2D List.

19
New cards

Column

A vertical grouping of items in a 2D List.

20
New cards

List[start : stop : step]

Syntax to slice a List from start to stop with a specified step.

21
New cards

List comprehension for 2D list

A method to create a 2D List using nested for loops in a compact way.