how to take a part of an array python code example Example: python part of array >>> a = [1, 2, 3, 4, 5, 6, 7, 8] >>> a[1:4] [2, 3, 4]