# -*- coding: utf-8 -*-
"""
Created on Fri May 10 09:29:41 2019

@author: hp
"""

import numpy as np 
a = np.arange(8) 
s = slice(2,9) 
print (a[s])


import numpy as np 
a = np.arange(10) 
b = a[2:7] 
print (b)

# slice items starting from index 
import numpy as np 
a = np.arange(10) 
print(a[2:])


