Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
8 of 23
Edited question title and removed language tag.
martineau
  • 124.1k
  • 29
  • 181
  • 319

Explanation of slice notation?

I need a good explanation (references are a plus) on Python's slice notation.

To me, this notation needs a bit of picking up.

It looks extremely powerful, but I haven't quite got my head around it.

Simon
  • 81.2k
  • 27
  • 93
  • 120