Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Content added Content deleted
imported>Mako (→Lists) |
imported>Mako (→Lists) |
||
Line 59: | Line 59: | ||
** indexing like my_list[0] |
** 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 |
** indexing starts from the front and we ''start counting at 0'' (now you understand all the zeros we've been using |
||
⚫ | |||
** we go from the end with negative numbers |
** we go from the end with negative numbers |
||
⚫ | |||
* adding elements |
* adding elements |
||
** using the the <code>my_list.append()</code> function |
|||
* changing elements |
* changing elements |
||
* slicing lists |
* slicing lists |