lec-11-18

lec-11-18 - 11/18/2009 Midterm You mostly did well! MC...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
11/18/2009 1 ECS 10 11/18 Midterm ± You mostly did well! MC Curve: 50,55 – A 40,45 - B 30 35 C 30, 35 - C ± No lecture the day before Thanksgiving. I will be at lab hours, and I will do a little review project with whoever shows up. Graphics module ± Not a build-in part of Python ± Need to include a module to get graphics functions. ± Ours is in ecs10graphics py Ours is in ecs10graphics.py. Importing import ecs10graphics as gr ± Graphics functions are, eg., gr.line() . ± Why do we need the prefix at all? Importing lots of modules if two of them have functions lots of modules, if two of them have functions named line() we need to be able to tell the difference. The Window ± Begin any graphics program with: gr.begin_graphics() ± This creates the graphics window. ± We can tailor the window. gr.begin_graphics(400,600,gr.Color.pink,“Picture”) Function Arguments open(“dataFile.txt”, “r”) len(myList) int(“45”) gr. begin_graphics(400,600) ± The stuff in the parenthesis. Input to the function.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2010 for the course ECS 10 taught by Professor Amenta during the Spring '07 term at UC Davis.

Page1 / 4

lec-11-18 - 11/18/2009 Midterm You mostly did well! MC...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online