Skip to content

Instantly share code, notes, and snippets.

@methane
Created February 15, 2014 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save methane/9019582 to your computer and use it in GitHub Desktop.
Save methane/9019582 to your computer and use it in GitHub Desktop.
In [2]: list.
list.append list.extend list.insert list.pop list.reverse
list.count list.index list.mro list.remove list.sort
In [2]: list.in
list.index list.insert
In [2]: list.index?
Type: method_descriptor
String Form:<method 'index' of 'list' objects>
Namespace: Python builtin
Docstring:
L.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment