[pythonvis] Session for today: for loops, modules, functions and data structures

  • From: "Joseph Lee" <joseph.lee22590@xxxxxxxxx>
  • To: <pythonvis@xxxxxxxxxxxxx>
  • Date: Thu, 29 May 2014 17:54:30 -0700

Hi,

Unfortunately, we don't have the recording for today's session. But it was
one of the most informative session we had. We talked about for loops,
strings, modules, functions and beginnings of data structures.

For for loops, we talked about strides (or steps, the third argument in
range function) and using it on various programs such as directory listings
and string character searches.

For modules, we talked about math module, how to obtain help for a
module/function and looking at what's in a module via dir method.

For data structures, we talked about built-in types such as lists, tuples,
strings and dictionaries, as well as other advanced types found in the
Python libraries such as ordered dictionaries (a data structure allows you
to represent data in whatever way possible, such as a list, a dictionary
(map or associative array) and so on). For more info on what data types and
structures you can use, consult the following two links:

Built-in data types and structures (version 2.7.6):

https://docs.python.org/2/tutorial/datastructures.html

Advanced data structures from Python's collections module:

https://docs.python.org/2/library/collections.html

I don't remember other things we've talked about off top of my head at the
moment.

I'm sure one of us will post a set of exercises that deals with for loops
and functions soon, so stay tuned.

Cheers,

Joseph

Other related posts: