O'Reilly logo
  • Jayaram Iyer thinks this is interesting:

Using a plain : is the same as 0:-1 (the entire string):

From

Cover of Introducing Python

Note

This is possibly incorrect [0:-1] returns everything excepting the final characters of the string