By the time you have completed this lab, you should be able to
This week's lab is about mechanics, not concepts.
Note: this assignment is not particularly intellectually challenging. I hope that will not be the case in future weeks! This assignment is designed to make sure you are comfortble working in the Python environment and know how to submit your work. The thinking part will come between this lab, and next week's lab.
Find a box like this at the upper right hand corner of your screen. Use your UCSBNetID and password (same one you use for email) to log in.

Find the icon that says "MyStorage"---at the left hand side of the screen, about five down from the top. Double click on that, and you should see:

Next to the line that says U-Storage, enter your UCSBNetID and password (the same one you use for UMail), and click the box that says Connected.
This will give you an extra "hard drive" on your computer called the N:\ drive. This is storage that you can access from any of the computing labs in Phelps. When we store files, we'll typically want to store them here.
IDLE is a piece of software that you use to interact with the Python programming language.
Where you find it on your computer depends on whether
From the Windows Start Menu (lower left), navigate to:
Double click on the IDLE icon. This should bring up IDLE
From the Windows Start Menu (lower left), navigate like this. The names may be slightly different—if so, don't worry about it too much, it's probably fine.
In the Applications folder, you should have a folder called MacPython 2.5. Inside that folder is an icon called IDLE. Double click on that.
You may want to drag this icon to the "Dock" for easy launching.
Once you are inside of IDLE, you need to select "File=>New Window" to open a new "untitled" window for Python code.
Then, open a web broswer to the link below.
http://www.cs.ucsb.edu/~pconrad/cs5nm/08F/labs/lab01
At this link, you should find a file called someFunctions.py. Click that link.
The contents of that file are Python code for some function defintions. You should be able to copy and paste that code into the new "untitled" window.
Now, to load those function defintions into Python, select "Run=>Run Module" (or hit F5).
You'll have to save the file.
Now, those functions are loaded into Python.
To test these functions, you can type in lines like this in the IDLE window with the Python prompt (>>>). (We'll review this in lecture)
>>> square(5) 25 >>> CtoF(100) 212.0 >>> CtoF(0) 32.0 >>> CtoF(68) 154.39999999999998 >>> CtoF(20) 68.0 >>> distance(0,0,3,4) 5.0 >>> distance(0,0,10,10) 14.142135623730951 >>>
Then, while you are in the IDLE window, not the window with your function defintions:
You should now have two files inside your lab01 directory. You are ready to load these into the assignment "Ex2" in GauchoSpace.
The goal in this step is to find "Ex2" on GauchoSpace, follow the instructions for uploading the two files "someFunctions.py" and "lab01.transcript.txt", and then submitting these for grading.
Since your TA and instructor don't have access to this course as a "studnet" on GauchoSpace, we don't have detailed instructions for this yet. We hope it will be self-explanatory. We'll ask for a volunteer in lecture to try it out, and we hope that will be a good demo for everyone else of how to do it.