{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# 108HL06 - Modules Docstrings and_main Lecture 6 Week 2...

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

Modules, Docstrings and __main__ Lecture 6, Week 2 January 21, 2011 CSC108H1S Velian Pandeliev 1 Friday, January 21, 2011

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

View Full Document
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 significant difference for this individual’s 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 certificate 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

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

View Full Document
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

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

View Full Document
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.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 25

108HL06 - Modules Docstrings and_main Lecture 6 Week 2...

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

View Full Document
Ask a homework question - tutors are online