108HL07 - Docstrings Lecture 7, Week 3 January 24, 2011...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Docstrings Lecture 7, Week 3 January 24, 2011 CSC108H1S Velian Pandeliev 1 Monday, January 24, 2011 2 Announcements Assignment 1 has been posted to Blackboard alongside a document called Assignment Style Guide. Be advised that there is a 24-hour silent period before the assignment due date. Last week's labs saw many surprises to the roster. You should only attend the lab you're ofFcially signed up for on ROSI. Starting next week, you will not receive a mark for a lab unless you're ofFcially on the roster for that lab. In order for any allowances to be made, you have to e-mail me with a legitimate reason. Monday, January 24, 2011 3 Important Dates Wed Jan. 26 Quiz 1 Wed Feb. 9 Quiz 2 Fri Feb. 11 Assignment 1 Due, Midterm Cutoff Wed Feb. 16 Midterm Mon Feb. 21 Course Drop Deadline Wed Mar. 9 Quiz 3 Wed Mar. 9 Assignment 2 Due Wed Mar. 23 Quiz 4 Wed Apr. 6 Assignment 3 Due 3 Important Dates Wed Jan. 26 Quiz 1 Wed Feb. 9 Quiz 2 Fri Feb. 11 Assignment 1 Due, Midterm Cutoff Wed Feb. 16 Midterm Mon Feb. 21 Course Drop Deadline Wed Mar. 9 Quiz 3 Wed Mar. 9 Assignment 2 Due Wed Mar. 23 Quiz 4 Wed Apr. 6 Assignment 3 Due Monday, January 24, 2011 4 For The Quiz Know how Python assigns values to variables Practice evaluating every type of expression we've seen Review precedence and order of operations Look over built-in functions we've covered No deFnitions, no external modules, nothing we didn't cover in class Monday, January 24, 2011 5 CodeLab Moments Monday, January 24, 2011 Function I/O 6 Write the defnition oF a Function words_typed , that receives two parameters : typing speed in words per minute (an int) and a time interval in seconds (an int). The Function returns the number oF words (an int) that a person with that typing speed would type in that time interval. def words_typed (speed, time): speed = raw_input("please enter your speed:") time = raw_input("please enter your time:") words_typed = speed * time def words_typed (speed, time): return speed * time Monday, January 24, 2011 Specifcations 7 Write the defnition oF a Function typing_speed , that...
View Full Document

Page1 / 30

108HL07 - Docstrings Lecture 7, Week 3 January 24, 2011...

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

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