What does append() do?
Adds an element to the end of the list.
What does extend() do?
Appends elements from an iterable to the end of the list.
What does insert() do?
Inserts an element at a specified index in the list.
What does remove() do?
Removes the first occurrence of a specified value from the list.
What does pop() do?
Removes and returns the element at a specified index, or the last item.
What does clear() do?
Removes all elements from the list.
What does index() do?
Returns the index of the first occurrence of a specified value.
What does count() do?
Returns the number of occurrences of a specified value in the list.
What does sort() do?
Sorts the elements of the list in ascending order.
What does reverse() do?
Reverses the order of the elements in the list.
What does copy() do?
Creates a shallow copy of the list.
True or false: list() can convert other iterables to a list.
TRUE
Fill in the blank: slice returns a _______ of the list.
sublist
What does join() do?
Combines elements of a list into a single string, using a specified separator.
What does list comprehension do?
Creates a new list based on existing lists using a concise syntax.
What does max() do?
Returns the largest item in the list.
What does min() do?
Returns the smallest item in the list.
What does sum() do?
Returns the sum of all items in the list.
What does any() do?
Returns True if any element of the list is true.
What does all() do?
Returns True if all elements of the list are true.
What does enumerate() do?
Returns an iterator that produces pairs of index and value from the list.
What does zip() do?
Combines elements from multiple lists into tuples.
What does filter() do?
Creates a list of elements for which a function returns true.
What does map() do?
Applies a function to all items in the list and returns a new list.