Ask coding questions

← Back to all posts
URGENT : Python - Array question
bootcampAY (0)

How can I do this: For example I have one array, [0,1,2,3], now I wanna get numbers after array[1] in python. Get the values from 0 to 2. It is urgent please tell me the answer.


you can use the : in your indexing.


like that.

19ecal (228)

If you just want the elements after array[1] do array[2:]

novaflippers (48)

May I please have the code you already have?