News

You saw above how to use the bracket notation to get a single item from a list: my_list[2], for example.Slices use a variant of the same index notation (and follow the same indexing rules): list ...
Furthermore, Python contains the notion of "slice-notation," meaning that the programmer can chose small sections of the string, called "substrings" to manipulate as well.