Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions

imported>Mako
imported>Mako
Line 59:
** indexing like my_list[0]
** indexing starts from the front and we ''start counting at 0'' (now you understand all the zeros we've been using
** what happens if we try to move outside of the range? ('''error!'')
** we go from the end with negative numbers
** what happens if we try to move outside of the range? ('''error!'')
* adding elements
** using the the <code>my_list.append()</code> function
* changing elements
* slicing lists
Anonymous user