06-conditionals - ENG 1D04 Fall 2010 06 Conditionals Dr....

Info iconThis preview shows pages 1–7. 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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ENG 1D04 Fall 2010 06 Conditionals Dr. William M. Farmer and Dr. Spencer Smith Faculty of Engineering, McMaster University 22 October 2010 Outline 1. Administrative details. 2. Review. 3. Booleans. 4. If statements. 5. Exceptions. 6. Programming paradigms. 7. Demo. 8. Advice. 9. Work plan for next week. W. M. Farmer and S. Smith ENG 1D04 Fall 2010: 06 Conditionals 2/17 Administrative Details W. M. Farmer and S. Smith ENG 1D04 Fall 2010: 06 Conditionals 3/17 Advice 1. Dont give up! I If you havent been working hard, work harder. I If you have been working hard, work smarter. 2. Learn from your mistakes! I Failure offers much greater opportunity for growth and development than success provided you do not lose your confidence in yourself. W. M. Farmer and S. Smith ENG 1D04 Fall 2010: 06 Conditionals 4/17 Review 1. Functions. 2. Namespaces and scope. 3. The principle of least privilege. W. M. Farmer and S. Smith ENG 1D04 Fall 2010: 06 Conditionals 5/17 Booleans A boolean is a standard truth value, either true or false . I In Python, the truth values are named True and False . I Booleans are named after the English mathematician George Boole (18151864). The type bool of booleans consists of the two boolean values. A Boolean expression (also called a formula ) is an expression of type bool ....
View Full Document

Page1 / 17

06-conditionals - ENG 1D04 Fall 2010 06 Conditionals Dr....

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

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