T-Th 9:05
or
T-Th 11:15
in Olin 155

CS 1110: Introduction to Computing Using Python

Spring 2015

The Labs

Labs/Sections are held (just about) every week and there is always a Lab Exercise that you work on. Completed Lab Exercises are “checked off” by the consultants who enter the information into CMS. The Lab Exercises are not graded for correctness. They are designed to help you understand the ideas behind the current assignment (which is graded for correctness and other things). Thus, the act of working on a Lab Exercise is the act of working on the current assignment.

By recording your Lab Exercise completions over the semester we have a record of your commitment to learning CS 1110 content. The “checking off” can be done during the lab itself if you finish. If you need more time and/or help, then the Lab Exercise can be checked off by any CS 1110 consultant up until the start of the next lab, which is usually the week after.

Solutions to selected problems from Labs 1-9.

Lab Topic Reading Code
Lab 0 CANCELLED
Lab 1 Getting Started, Assignment Statements and Types   hello1.py
hello2.py
Lab 2 Conditional Execution   AllDiff.py
Sticks.py
FormatPlay.py
Lab 3 Functions   DemoGraphics.py
Turkey.py
DemoMath.py
Lab 3.5 CANCELLED  
Lab 4 String Methods, For, Functions   Checkers.py
Asteroid.py
FunctionTrace.py
ShowLineSeg.py
simpleGraphicsE.py
Lab 5 Random simulation, While Loops, Boolean Functions   ShowRand.py
PaintBall.py
UpDown.py
ShowBF.py
Lab 6 Lists and functions, break, assert, try   ShowBreak.py
ShowTry.py
SqrtAssert.py
ShowArrays.py
Lab 7 Nested loops, selection sort, index lists   ShowSelect.py
ShowNestedLoops.py
ShowCities.py
Lab 8 Benchmarking, recursion, copying objects   Lab_8Web.zip
Lab 9 Objects and Dictionaries   Lab_9Web.zip
Lab 10 numpy, pylab, 2D arrays, reading from a file   Lab_10Web.zip Lab_10Sol.zip
Lab 11 Instructive Classes: Fraction, Card, Hand, Deck   Lab_11Web.zip Lab_11Sol.zip

Course Material Authors: D. Gries, L. Lee, S. Marschner, C. Van Loan & W. White (over the years)