# this works myState = states[0:2] print() print(myState)
#this does not, why? neighbourStates = states[1:2] print() print(neighbourStates)
@anumishra: The 2nd parameter of [0:2] is not "how many items", it's the index of item after the last item. So if you use states[1:2], it will only return states. (Another example, if you use states[3:5], it will return states and states.)
I'm very sorry for the confusion here! Sometimes I move too fast in my efforts to break things down and make mistakes. I'm going to work to get back into the studio as soon as I can to update this video.