Examples from Class

Please report broken links to azs@bu.edu

Class meeting Concept Examples from class
Tue 22 january Identifiers, Expressions
Assignment Statements
Output and Input
currencyconversion.py
endquote.py
showinput.py
Thu 24 January Data types, arithmetic
Math library
Format operator
20080124.interactive.1.txt
20080124.interactive.2.txt
20080124.interactive.3.txt
quadratic.py
Tue 29 January Definite (for) Loops
Accumulator Pattern
definiteloop.py
accumulator.py
average.py
Thu 31 January Definite (for) Loops (reviewed)
string operations
compoundinterest.xls
compoundinterest.py
Tue 5 February String operations: indexing, slicing
Character encoding/decoding
String library
username.py
encoder.py
decoder.py
20080205.interactive.txt
Thu 7 February String library's split function
Using the for loop with strings and lists
Reading/writing text files
readfile.py
writefile.py
Tue 12 February Introducing classes and objects
Graphics concepts
Constructors
20080212.interactive.txt
Thu 14 February Review constructors and methods
Anonymous objects
Shallow/Deep Copy
Custom Colors
20080214.interactive.txt
20080214.interactive.2.txt
colorpicker.py
Thu 21 February Functions
Formal parameters
Actual parameters
Return valuves
smiley.py [some starter code]
happybirthday.py
smiley.py [with functions]
returnvalues.py
Tue 26 February Boolean Expressions
Decision logic (if/elif/else)
grading.py
readfile2.py
whattowear.py
Thu 11 October Indefinite loops
Interactive/Sentinel Controlled
Infinite/Busy Loops
try/except
average2.py
average3.py
average4.py
average5.py
yesorno.py
busyloop.py
Tue 4 March Class definition
die.py
Thu 6 March Class definition
review + multiple modules, docstrings
die.py
client.py
Tue 18 Mar lists
statistics
Thu 25 Oct lists (review)
dictionaries
wordcount.py
Tue 25 March Inheritance, polymorphism
GUI intro
farm.py
Thu 27 March GUI dialogs
starter1.py [some starter code]
starter1.rsrc.py [some starter code]
dialogDemo.py
dialogDemo.rsrc.py
Tue 1 April GUI Layout Editor, Property Editor
Buttons, TextField, Menus, Events
counter.py
counter.rsrc.py
Thu 3 April GUI Layout Editor, Property Editor
CheckBox, Radio Group, Choice, Combo Box, Events
coffeeMenu.py
coffeeMenu.rsrc.py
Tue 8 April Databases and SQL sqliteClient.zip Aaron's SQL client
investment.db Example database
sql_examples.txt
SQL Examples
Thu 10 April Using the DB API
Running SQL queries from Python
databaseExample.py
Tue 15 April HTML and Python
CGI traceback
hello.py
Tue 17 April HTML Forms
Reading CGI Data
hello2.py
dnsweb.py
printCGIFormFields.py
Thu 1 May Downloading a web page in Python
webdownload.py
testmysqlweb.py


Created by: Aaron Stevens, azs@bu.edu
http://www.cs.bu.edu/courses/cs108
Last update: 1 May 2008