>>> s = "abcdef" >>> s[1:3] Out[1]: 'bc' >>> type(s) Out[1]: str >>> type(s[1:3]) Out[1]: str >>> l = [ 0, 1, 2, 3, 4, 5 ] >>> l[1:3] Out[1]: [1, 2] >>> type(l) Out[1]: list >>> type(l[1:3]) Out[1]: list >>> range(10) Out[1]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> s = "a b c d e f" >>> s.split() Out[1]: ['a', 'b', 'c', 'd', 'e', 'f'] >>> s.split('c') Out[1]: ['a b ', ' d e f']