Mega Code Archive
Categories
/
Python
/
String
An invariant of slice operations
word = "Hello world" print word[:2] + word[2:] print word[:3] + word[3:]