In Class: Week 2 Wednesday and Friday

If you have not already done so, create a week02 subdirectory in your cs21/class directory:

      $ cd 
      $ cd cs21/class
      $ pwd

      $ mkdir week02        
Then, from within your week02 subdirectory copy over some python files from my public directory (there are two new files that was not available on Monday, so copy over all and you can say yes or no to replacing any you alread have):
    $ cd week02
    $ pwd

    $ cp ~newhall/public/cs21/week02/* .
    $ ls

We are going to do some of the following:

  1. open in vim. It contains some examples of numeric expressions and order of evalution. Let's take a look at some of them...

  2. open in vim. We will try out functions from math library.

  3. open Together we will try writing some code using string operators (concatenation (+), repetition (*), split ([pos1:pos2])

  4. next in the file, we are going to try out some string library functions. First we need to add this line to the top of the file:
    		from string import *

  5. open in vim. It contains some examples of formated output. Try running it in another terminal window and see if you understand what is getting printed out.