CS21 In Class: week 12

more recursive functions, defining classes

Setting up a subdirectory for week 12 in-class work


cd into your cs21/class/ subdirectory and create a new directory named 'week12', then cd into that directory:
$ cd cs21/class                     # cd into your cs21/class subdirectory
$ pwd	          
  /home/your_user_name/cs21/class

$ mkdir week12                      # make a subdirectory named week12   
$ cd week12                         # cd into it
$ pwd           
  /home/your_user_name/cs21/class/week12

Now copy over all the files from my public/cs21/week12 directory into your week12 directory (remember to add the dot as the destination of the cp command). From your week12 directory:

$ cp ~newhall/public/cs21/week12/* .
For Thursday copy over new versions of two of these files (and enter y to cp's overwrite quesition):
$ cp ~newhall/public/cs21/week12/atm.py .
  cp: overwrite './atm.py'? y

$ cp ~newhall/public/cs21/week12/account.py .
  cp: overwrite './account.py'? y

# to grab a copy of the in-class code from Tuesday:
$ cp ~newhall/public/cs21/week12/tias_recursion.py .

Weekly In-class Examples

This week we are going to:

str and list documentation