Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Help on class list in module builtins:
- class list(object)
- | list() -> new empty list
- | list(iterable) -> new list initialized from iterable's items
- |
- | Methods defined here:
- |
- | __add__(self, value, /)
- | Return self+value.
- ...
- | __iter__(self, /)
- | Implement iter(self).
- ...
- | append(...)
- | L.append(object) -> None -- append object to end
- |
- | extend(...)
- | L.extend(iterable) -> None -- extend list by appending elements from the iterable
- |
- | index(...)
- | L.index(value, [start, [stop]]) -> integer -- return first index of value.
- | Raises ValueError if the value is not present.
- ...
- | pop(...)
- | L.pop([index]) -> item -- remove and return item at index (default last).
- | Raises IndexError if list is empty or index is out of range.
- |
- | remove(...)
- | L.remove(value) -> None -- remove first occurrence of value.
- | Raises ValueError if the value is not present.
- ...
- | ----------------------------------------------------------------------
- | Data and other attributes defined here:
- |
- | __hash__ = None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement