In Class: Week 3 Monday


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 format.py 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.

  2. open ascii.py. Together we are going to write a program that takes a line of input from the user, and prints out the ascii values of each character in the input string.

  3. open drop_letter.py. Together we are going to write a program that takes a line of input from the user, and creates a new string that consists of every other character (every odd character) from the input string.