Lists Flashcards
1
Q
name_of_list[index_number]
A
Returns list element at index #Index_number
2
Q
Len(name_of_list)
A
Returns the number of elements in a list
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
4
Q
Name_of_list[::]
A
Returns the list: Name_of_list
5
Q
Name_of_list[:x:]
A
Returns a list of the first x elements
6
Q
Name_of_list_of_lists[x][y]
A
Returns a specific element in a list of lists
7
Q
A