I just noticed that if i exceed the length of an array it won’t exit an error instead it will give the result like;
x = [1,2,3,4,5]
In [17]: x[0:5]

Out[17]: [1, 2, 3, 4, 5]

In [18]: x[0:15]

Out[18]: [1, 2, 3, 4, 5]