Jump to content

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

imported>Mako
imported>Mako
Line 58:
* accessing elements
** 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
* adding elements
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.