In Class: Week 3 Monday and Wednesday


Create a week03 subdirectory in your cs21/class directory:

      % cd 
      % cd cs21/class
      % pwd
        /home/your_user_name/cs21/class

      % mkdir week03        
	
Then, from within your week03 subdirectory copy over some python files from my public directory:
    % cd week03
    % pwd
      /home/your_user_name/cs21/class/week03

    % cp ~newhall/public/cs21/week03/* .
    % ls
	

We are going to do some of the following:

  1. open test_string.py and finish some of the exercises that we started last week Friday.
  2. open drop_letter.py in vim: together we will write a program that takes an input string and creates a new string that consists of every other character dropped from the first string. This is an example of using the accumulator pattern to accumulate a string value.
  3. open is_odd.py in vim: try implementing a solution to the problem described in this file.