Study help for Python!
Go to solution
Solved by BobVonBob,
Those are list locations, accessing list[x] will give the x-th item in the array, starting at 0. The [1:] is a special case of this for python and languages like it called slice notation, it's a slightly more complex list location that essentially says "every item from the 1st location to the last" in this case (1st location is the 2nd item, because arrays start at 0)
Check out https://www.learnpython.org/en/Lists for a beginner rundown on all this stuff.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now