Python logo

Table of Contents

  • Built-in Types
    • Truth Value Testing
    • Boolean Operations — and, or, not
    • Comparisons
    • Numeric Types — int, float, complex
      • Bitwise Operations on Integer Types
      • Additional Methods on Integer Types
      • Additional Methods on Float
      • Additional Methods on Complex
      • Hashing of numeric types
    • Boolean Type - bool
    • Iterator Types
      • Generator Types
    • Sequence Types — list, tuple, range
      • Common Sequence Operations
      • Immutable Sequence Types
      • Mutable Sequence Types
      • Lists
      • Tuples
      • Ranges
    • Text and Binary Sequence Type Methods Summary
    • Text Sequence Type — str
      • String Methods
      • Formatted String Literals (f-strings)
        • Debug specifier
        • Conversion specifier
        • Format specifier
      • Template String Literals (t-strings)
      • printf-style String Formatting
    • Binary Sequence Types — bytes, bytearray, memoryview
      • Bytes Objects
      • Bytearray Objects
      • Bytes and Bytearray Operations
      • printf-style Bytes Formatting
      • Memory Views
    • Set Types — set, frozenset
    • Mapping types —