Python Programming: An Introduction to Computer Science
Python Programming: An Introduction to Computer Science
Chapter 7 Decision Structures
Python Programming, 2/e
1
Objectives
n To understand the programming pattern simple decision and its implementation using a Python if statement.
n To understand the programming pattern two-way decision and its implementation using a Python ifelse statement.
Python Programming, 2/e
2
Objectives (cont.)
n To understand the programming pattern multi-way decision and its implementation using a Python ifelif-else statement.
n To understand the idea of exception handling and be able to write simple exception handling code that catches standard Python run-time errors.
Python Programming, 2/e
3
Objectives (cont.)
n To understand the concept of Boolean expressions and the bool data type.
n To be able to read, write, and implement algorithms that employ decision structures, including those that employ sequences of decisions and nested decision structures.
Python Programming, 2/e
4
Simple Decisions
n So far, we've viewed programs as sequences of instructions that are followed one after the other.
n While this is a fundamental programming concept, it is not sufficient in itself to solve every problem. We need to be able to alter the sequential flow of a program to suit a particular situation.
Python Programming, 2/e
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- operators and expressions
- predicting if income exceeds 50 000 per year based on
- python working with pixels villanova
- recommended system requirements
- 4 basic operators
- python chapter 2 if statement random class
- python while loop rxjs ggplot2 python data persistence
- python programming an introduction to computer science
- 5 constraint satisfaction problems
- shape analysis measurement purdue university
Related searches
- an introduction to marketing pdf
- introduction to computer systems pdf
- an introduction to moral philosophy
- introduction to computer studies pdf
- introduction to computer science
- introduction to computer packages pdf
- introduction to computer pdf notes
- introduction to computer science free
- introduction to computer science class
- an introduction to an essay
- introduction to computer science course
- introduction to computer science online