Returned Test

Graphics

Download the graphics library to your computer if appropriate.

WARNING! Don't use IDLE and graphics library on a Windows machine at the same time. There is a conflict between these.

Graphics Code from Class

Homework for Friday:

Write a function display().  It should prompt the user for the name of a file, read the contents of a file, and display it on the screen with line numbers for each new line. 

Homework for Monday:

Create a picture of your choosing using the graphics primatives. (Don't just copy what I've done!)

What to turn in: Email me the code for each of these assignments. The code should be sent as an email attachment. The attachment's file name should include your last name and an indication of the assignment, but should not include special characters. E.g., "jonesDisplay.py" or "jonesPic.py" would be good names. You should also turn in a printed demonstration for each program. If you have trouble printing a Python window, then use a screen capture, paste it into a Word document, and then print that document. Go to the lab if necessary.