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

imported>Mako
imported>Mako
Line 50:
 
* purpose
** Stores things ''in order''
* initialization
** making a list called my list: <code>my_list = ["a", "b", "c"]</code>
** comma separated elements. in python they can be a mix of any kind of types
** <code>type(my_list)</code>
* <tt>len()</tt> review
* accessing elements
** indexing from 0 (now you understand all the zeros we've been using
* adding elements
* changing elements
Anonymous user