Lists(programming)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:54 AM on 4/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

.append()

Adds an element at the end of the list

2
New cards

.clear()

Removes all the elements from the list

3
New cards

.copy()

Returns a copy of the list

4
New cards

.count()

Returns the number of elements with the specified value

5
New cards

.extend()

Add the elements of a list (or any iterable), to the end of the current list

6
New cards

.index()

Returns the index of the first element with the specified value

7
New cards

,insert()

Adds an element at the specified position

no default requires (position, item)

position starts at 0

8
New cards

.pop()

Removes the element at the specified position

defaults to last element

9
New cards

.remove()

Removes the first item with the specified value

10
New cards

.reverse()

Reverses the order of the list

11
New cards

.sort()

Sorts the list

arrange elements in ascending order(by default)

12
New cards

sorted()

returns a newly sorted list

arrange elements in ascending order

13
New cards

specifying a position

list[position]