06-conditionals

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

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

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

View Full Document

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

View Full Document

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.

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. Don’t give up! I If you haven’t 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 (1815–1864). 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

## This note was uploaded on 10/14/2011 for the course ENGINEER CHEM ENG 3 taught by Professor Ghosh during the Spring '11 term at McMaster University.

### 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
Ask a homework question - tutors are online