Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

subarrays in python

array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
a = array[1 : 4]
b = array[0 : 8]
c = array[6 : ]
d = array[ : 5]
print(a)
print(b)
print(c)
print(d)
 
PREVIOUS NEXT
Tagged: #subarrays #python
ADD COMMENT
Topic
Name
5+2 =