Anonymous user
Community Data Science Workshops (Fall 2014)/Day 1 lecture: Difference between revisions
Community Data Science Workshops (Fall 2014)/Day 1 lecture (view source)
Revision as of 16:52, 8 November 2014
, 9 years ago→Lists
imported>Mako |
imported>Mako (→Lists) |
||
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
|