CS1 - 1011 - March

From WLCS

Monday - Wednesday (3/28/11 - 3/30/11)

Agenda:

Thursday (3/24/11)

Agenda:

  • 1st half of class: study for the 3rd Quarter Exam
  • 2nd half of class: take the 3rd Quarter Exam
  • Complete the Python List Exercises

Wednesday (3/23/11)

Agenda:

Monday - Tuesday (3/21/11 - 3/22/11)

Warmup:

  • Have you ever created a list of items before?
  • Create an example list of items (e.g. grocery, homework, todo, etc.)

Agenda:

Thursday - Friday (3/17/11 - 3/18/11)

Warmup:

  • Translate the following words into pig latin:
    • Washington
    • Generals
    • Chair
    • Street
    • I

Agenda:

Tuesday - Wednesday (3/15/11 - 3/16/11)

Agenda:

Friday - Monday (3/11/11 - 3/14/11)

Warmup:

  • Without running it on your computer, what does the following source code print at the end?
newString = ""
x = 0
while x < 5:
    newString = newString + "l"
    newString = newString + "o"
    x = x + 1
print newString

Agenda:

Wednesday - Thursday (3/9/11 - 3/10/11)

Warmup:

  • Bring up your E-mail Harvester and compare to Mr. Bui's version

Agenda:

Monday - Tuesday (3/7/11 - 3/8/11)

Warmup:

  • Assume you have the string s = "Arg...today is Tuesday!"
    1. Write the code to print out the t from string s
    2. Write the code to print out the ! from string s
    3. What are indexes of the the "..."?
    4. Write the code to print out the '...' from string s

Agenda:

Thursday - Friday (3/3/11 - 3/4/11)

Warmup:

  • Write a while loop that uses a counter variable i
  • The while loop should count and print 0 through 50
    • Put an if-statement in the loop, and if i is greater than 11, then print it out

Agenda:

Tuesday - Wednesday (3/1/11 - 3/2/11)

Warmup:

Agenda: