Lists Flashcards

1
Q

name_of_list[index_number]

A

Returns list element at index #Index_number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Len(name_of_list)

A

Returns the number of elements in a list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Slicing—name_of_list[x:y:z]

A

This returns a list of the elements from x to y(excluding y) with a step count of z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name_of_list[::]

A

Returns the list: Name_of_list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name_of_list[:x:]

A

Returns a list of the first x elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name_of_list_of_lists[x][y]

A

Returns a specific element in a list of lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly