108HL06 - Modules, Docstrings and __main__ Lecture 6, Week...

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: Modules, Docstrings and __main__ Lecture 6, Week 2 January 21, 2011 CSC108H1S Velian Pandeliev 1 Friday, January 21, 2011 2 Announcement There is a student in this class who requires a volunteer notetaker as an accommodation for a disability. By signing up and posting your notes, you can make a signiFcant difference for this individuals capacity to fully participate in this course. Go to:http://www.studentlife.utoronto.ca/accessibility/ pcourselist.aspx or come in person to Accessibility Services 215 Huron St. Suite 939. Many students notice the quality of their notetaking improves through volunteering. You will also receive a certiFcate of recognition. Friday, January 21, 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 Friday, January 21, 2011 4 Recap of Lecture 5 Friday, January 21, 2011 Comparison Operators 5 Comparison operators are used to compare two values. Unlike arithmetic operators, comparisons evaluate to Boolean values. Operator Description > greater than < less than >= greater than or equal <= less than or equal == equal != or <> not equal Friday, January 21, 2011 Logical Operators 6 Logical operators are used to connect two Boolean expressions. They yield Boolean expressions whose truth value (True/False) is dependent on the truth value of the operands in some meaningful way. Operator Description not a returns the opposite of a a and b True if a and b are both True a or b True if at least one of a and b is True Friday, January 21, 2011 The Conditional ( if ) 7 An if statement is used to decide whether a piece of code should be executed....
View Full Document

This note was uploaded on 04/25/2011 for the course CSC 108 taught by Professor Gries during the Spring '08 term at University of Toronto- Toronto.

Page1 / 25

108HL06 - Modules, Docstrings and __main__ Lecture 6, Week...

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