Any idea what colons is supposed to be doing in this case? I just stumbled upon this and saw that it doesn't produce any error, I got curious to see if it did anything. So far I don't see colons doing anything in this case.
Can somebody enlighten me?
import numpy as np
x = np.arange(1, 10)
x
output: array([1, 2, 3, 4, 5, 6, 7, 8, 9])
x:5
x
output: array([1, 2, 3, 4, 5, 6, 7, 8, 9])