how to get part of a list in python code example Example: part of list in python >>> a[1:4] [2, 3, 4]