Numbers, Strings & Slicing Mastery

Unit 1: Core Foundations & Text · 8 min read

Arbitrary-precision ints, IEEE-754 float traps, safe stdin parsing, string immutability, and half-open slice arithmetic.

Key Concepts

  • Floor division (//) toward negative infinity
  • Arbitrary-precision int vs 64-bit float precision
  • Slice clamping vs single-index IndexError
  • O(n) string building with ''.join() instead of +=

Official Python Docs

Back to Python Notes Hub