Today I randomly realized you can add an index after print() in python, which behaves pretty much as if it was applied to a list passed as a parameter to print.
>>> sublists = [[['a'],['b'],['c']],[['d'],['e'],['f']],[['g'],['h'],['i']]]
>>> print(sublists[1][1])
['e']
>>> print(sublists[1])[1]
['e']
>>> print(sublists)[1][1]
['e']
>>> string = 'abcdefgh'
>>> print(string)[3:6]
def
I couldn't find any documentation explaining this behavior nor examples of what is it good for. What's going on, here?