Truncating a string in python
It’s called a slice. From the python documentation under Common Sequence Operations: s[i:j] The slice of s from i to j is defined as the sequence of items with index k such that i <= k < j. If i or j is greater than len(s), use len(s). If i is omitted or None, use … Read more