Examples from Class

Please report broken links to azs@bu.edu

-->
Class meeting Concept Examples from class
Thu 4 September Comments, Keywords,
Identifiers, Expressions
Assignment Statements
Output and Input
currencyconversion.py
testingText.py
testingInput.py
Tue 9 Sept Data types, arithmetic
Math library
Format operator
interactive.2008.09.09.txt
quatraticSolver.py
Thu 11 September Definite (for) Loops
Accumulator Pattern
definiteLoopExamples.py
bottlesofbeer.py
cashregister.py
factorial.py
Tue 16 September String operations: indexing, slicing
Character encoding/decoding
interactive.2008.09.16.txt
username.py
iteratingstrings.py
wordcount.py
Thu 18 September String library functions
Using the for loop with strings and lists
Reading text files
interactive.2008.09.18.txt
readfromfile.py
Tue 23 September Introducing classes and objects
Graphics concepts
Constructors
Methods
interactive.2008.09.23.txt
drawingExample.py
Thu 25 September Review constructors and methods
Anonymous objects
Shallow/Deep Copy
Custom Colors
String object examples
interactive.2008.09.25.txt
interactive.2008.09.25b.txt
Tue 30 Sept Functions
Formal parameters
Actual parameters
Return valuves
smiley.py [some starter code]
happyBirthday.py
smiley.py [with functions]
returnExample.py
Thu 2 Oct Boolean Expressions
Decision logic (if/elif/else)
Discuss variable scope
interactive.2008.10.02.txt
grading.py
variableScope.py
Tue 7 Oct Indefinite loops
Interactive/Sentinel Controlled
Infinite/Busy Loops
average01.py
average02.py
average03.py
average04.py
yesorno.py
busyloop.py
Thu 9 October validating user input
try/except
Class definition
validatingUserInput.py
die.py
dieExample.py
Thu 16 October Class definition
review + multiple modules, docstrings
die.py
dieExample.py
Tue 21 October lists
interactive.2008.10.21.txt
statistics.PY
Thu 25 Oct lists (review)
dictionaries
interactive.2008.10.23.txt
wordcounts.py
Tue 28 October lists/dict review
interactive.2008.10.28.txt
wordcounts02.py
Thu 30 October
Databases and SQL Using the DB API
Running SQL queries from Python
sqliteClient.zip Aaron's SQL client
investment.db Example database
interactive.2008.10.30.txt
dbexample.py
Thu 6 November HTML and Python
hello.py
Thu 13 Nov HTML Forms
CGI traceback
Reading CGI Data
hello2.py
showFormFields.py
Tue 18 November Web application with database
Environment variables
webDBExample.py
snoop.py
Tue 25 November Inheritance, polymorphism
GUI Dialogs
starter1.py [some starter code]
starter1.rsrc.py [some starter code] dialogDemo.py
dialogDemo.rsrc.py
Project Database creation on web server
dbWebCreate.py Prints failed if the table already exists.
dbWebCreate.py.txt (source)
Tue 2 December GUI Layout Editor, Property Editor
Buttons, TextField, Menus, Events
Multi-window (parent/child) (briefly covered)
counter.py
counter.rsrc.py
display.py
display.rsrc.py
Thu 4 December GUI Layout Editor, Property Editor
CheckBox, Radio Group, Choice, Combo Box, Events
run_LE.sh [script to run LayoutEditor on Mac]
coffeeStore.py
coffeeStore.rsrc.py
Wed 10 Dec PythonCard calendar widget
calendarExample.py
calendarExample.rsrc.py


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