Open links in new tab
  1. 5. Data Structures — Python 3.14.2 documentation

    2 days ago · The list methods make it very easy to use a list as a stack, where the last element added is the first element retrieved (“last-in, first-out”). To add an item to the top of the stack, use append().

  2. Built-in Functions — Python 3.14.2 documentation

    2 days ago · If the object has a method named __dir__(), this method will be called and must return the list of attributes. This allows objects that implement a custom __getattr__() or __getattribute__() …

  3. 3. Data model — Python 3.14.2 documentation

    2 days ago · Mutable sequences should provide methods append(), clear(), count(), extend(), index(), insert(), pop(), remove(), and reverse(), like Python standard list objects.

  4. Python Module Index — Python 3.14.2 documentation

    2 days ago · Python Module Index _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

  5. string — Common string operations — Python 3.14.2 documentation

    2 days ago · Normally, the job of formatting a value is done by the __format__() method of the value itself. However, in some cases it is desirable to force a type to be formatted as a string, overriding its …

  6. Sorting Techniques — Python 3.14.2 documentation

    2 days ago · Python lists have a built-in list.sort() method that modifies the list in-place. There is also a sorted() built-in function that builds a new sorted list from an iterable.

  7. Glossary — Python 3.14.2 documentation

    2 days ago · Examples of iterables include all sequence types (such as list, str, and tuple) and some non-sequence types like dict, file objects, and objects of any classes you define with an __iter__() …

  8. Built-in Types — Python 3.14.2 documentation

    2 days ago · This method sorts the list in place, using only < comparisons between items. Exceptions are not suppressed - if any comparison operations fail, the entire sort operation will fail (and the list …

  9. The Python Standard Library — Python 3.14.2 documentation

    2 days ago · While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with …

  10. 4. More Control Flow Tools — Python 3.14.2 documentation

    2 days ago · The statement result.append(a) calls a method of the list object result. A method is a function that ‘belongs’ to an object and is named obj.methodname, where obj is some object (this …