Labs‎ > ‎


Checklist Due Tuesday August 27 at 11:59pm in your Portfolio.

  1. Login to your CS account and change the password.
  2. Create a Google Site using your new USF Donsmail Google Account
    • Use the following naming convention: <username>-cs110-03
      • Example: jfkennedy-cs110-02
    • Set your portfolio to private
    • Share you portfolio with:,,
  3. Email me the following:
    • Your main email account.
    • A link to your portfolio
  4. Do all the exercises at the end of Chapter 1 of How to Think Like a Computer Scientist:
  5. Using gedit, write a python program called that prints the following on separate lines:
    1. Your name
    2. Three cities you have visited
  6. Run your program and put it in your portfolio for the Week1 lab.

Getting Started

First, we need to setup a few things and you need to learn a little about our computing environment.

Linux Basics

In this class we will do all of our work on the Linux Operating System.  Linux is a UNIX-based operating system that is widely used in both academia and industry.  As computer scientists you need to become familiar with UNIX-like operating systems.

  • Logging in
  • The desktop
  • The terminal
  • Your home directory: /home/<username>
  • Your web directory: /home/web/<username>
  • Text editing: gedit

CS Accounts

In addition to your USFconnect account, as a CS student you will have a special CS account that gives you access to the CS lab computers in Harney 235, 530, and 536.  It will also let you access the cslabs wireless network in Harney 235 and in the 5th floor computer labs.  Finally you will be able to login remotely to

Your CS account is the same as your USFconnect account name, e.g., jfkennedy.

Your initial password is the last 6 digits of your USF Student ID.

You should change your password the first time you login.  To do this you need to open a terminal window and type the command:


You will be asked to type in your old password, then your new password.

USF Donsmail Google Accounts

You will be using your USF Donsmail account for both email and creating a CS 110 portfolio.  You can also use this account for Google Docs, Spreadsheets, etc.

Google Sites: Your CS 110 Portfolio

You will be putting all of your lab work and course notes into your CS 110 Portfolio.

You will need to create a Google Site for this.

Then select "Sites" from the top bar menu.

And create a site.

You will need to give it a name, something like jfkennedy-cs110-02-portfolio

I will walk you through the steps.

After you have created your site you need to send me the URL to your portfolio.

Introduction to Programming with Python

A computer language provides humans with a notation that computers can understand and execution.

Our job is to learn the foundations of computer language so that we can get computers to do what we want them to.

Python works in two ways: you can use it interactive or you can have it run a computer program in a file.

For example, you can use Python as a simple calculator:

$ python
Python 2.6 (r26:66714, Nov  3 2009, 17:33:18) 
[GCC 4.4.1 20090725 (Red Hat 4.4.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 + 2 + 3

You can also put programs into a file:

$ cat >
print 'Hello World'
[benson@hrn23520 ~]$ python
Hello World
[benson@hrn23520 ~]$ 

The 'cat' command is a UNIX command that allows us to quickly put text into a file.

For anything more complicated, you want to use a text editor such as gedit:

$ gedit

Introduction to HTML

HTML (HyperText Markup Language) is used to describe how web pages look.

For example:

$ cat > test.html
Hello World from HTML!

Now you can use Firefox to see this file as a web page.