From course:
(Practice similar questions for free)
Programming Module (revision for friday's test)
» Start this Course(Practice similar questions for free)
Question:
What does each of the following methods do? 1) POP 2) REMOVE 3) REVERSE 4) SORT 5) COUNT 6) EXTEND
Author: Hannah QureshiAnswer:
1) POP = Removes the last element of the list and returns that value 2) REMOVE = removes the first occurance of the element with the specified value 3) REVERSE = reverses the sorting order of the values/characters. 4) SORT = returns a sorted list of the specified iterable object. 5) COUNT = returns the number of elements with the specified value. 6) EXTEND = returns the number of elements with the specified value.
0 / 5 Â (0 ratings)
1 answer(s) in total