Difference between revisions of "Computer Science"
From WLCS
Line 1: | Line 1: | ||
== Wednesday (4/18/12) == | == Wednesday (4/18/12) == | ||
− | '''Agenda:''' | + | '''Period 1 - Agenda:''' |
* Introduction to Strings | * Introduction to Strings | ||
** [[Media:Strings_Python.ppt]] | ** [[Media:Strings_Python.ppt]] | ||
** [[Python String Exercises]] | ** [[Python String Exercises]] | ||
* Complete 5 exercises from [http://codingbat.com/python/String-1 Python->String-1] | * Complete 5 exercises from [http://codingbat.com/python/String-1 Python->String-1] | ||
+ | |||
+ | '''Period 3 - Agenda:''' | ||
+ | * Complete all 11 exercises from [http://codingbat.com/python/String-1 Python->String-1] | ||
== Tuesday (4/17/12) == | == Tuesday (4/17/12) == |
Revision as of 09:50, 18 April 2012
Contents
Wednesday (4/18/12)
Period 1 - Agenda:
- Introduction to Strings
- Complete 5 exercises from Python->String-1
Period 3 - Agenda:
- Complete all 11 exercises from Python->String-1
Tuesday (4/17/12)
- Complete and turn in the Python String Exercises
- Complete 3 exercises from Python->String-1
Monday (4/16/12)
Warmup:
- Prompt the user for a number, N
- Write a loop that prints out the first N terms of the following arithmetic sequence
- 4, 7, 10, 13, 16, ... (HINT: you may want to use more than one variable)
Period 1 - Agenda:
- Complete the Looping Exercises
- Introduction to Strings
Period 3 - Agenda:
- Complete the Python String Exercises
Friday (4/13/12)
Warmup:
- Assume you have the string s = "Washington-Lee"
- What is the index of the "W"?
- What is the index of the "L"?
- What is the slice for just "Washington"?
- What is the slice for just "ton"?
Agenda:
- Introduction to Python Strings
Thursday - Friday (4/12/12 - 4/13/12)
Warmup:
- Using loops and strings:
- Copy and try out the following code:
s = "trol"
x = 0
while x < 5:
s = s + "lo"
x = x + 1
print(s)
- What does the above code produce?
- Tweak the code so that it prints "hahahahahahahaha"
Period 1 - Agenda:
- Loops and strings
- Complete Python > Warmup-2 > string_times
- Complete the Looping Exercises
Period 3 - Agenda:
- Loops and strings
- Complete Python > Warmup-2 > string_times
- Introduction to Python Strings
Tuesday (4/10/12)
Warmup:
- Write a loop that prints out the odd numbers from 33 down to 1
- HINT: Start with your loop template:
x = 0
while x < 10:
print(x)
x = x + 1
Period 1 - Agenda:
- Return and go over 3rd Quarter Exam
- Complete the Print Shapes Exercises
- Complete the Looping Exercises
Period 3 - Agenda:
- Return and go over 3rd Quarter Exam
Monday - Friday (4/2/12 - 4/6/12)
- Spring Break