Jump to ratings and reviews
Rate this book

Practical Programming in Python

Rate this book
Contents
1 The way of the program 1
1.1 The Python programming language . . . . . . . . . 1
1.2 What is a program? . . . . . . . . 3
1.3 What is debugging? .. . . . . . . 4
1.4 Experimental debugging . . . . . . . 4
1.5 Formal and natural languages . . . . . . . . . . . 5
1.6 The first program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.7 Glossary . . . . . . . . . . 6
1.8 The COMP150 lab . . . . . . . 7
1.8.1 Logging-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.8.2 The OSX desktop . . . . . . . . . . . . . . . 8
1.8.3 Menus . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . 8
1.8.4 The dock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.8.5 The Finder window . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.8.6 Your home directory . . . .. . . . . . . . . . . . . . . . . . . . 10
1.8.7 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.8.8 IDLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.8.9 Getting help . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.8.10 Coursework files . . . . . .. . . . . . . 13
1.8.11 Terms requirements . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.9 Blackboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.10 Laboratory exercises . . . .. . . . . . . 14
2 Variables, expressions and statements 19
2.1 Values and types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.2 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.3 Variable names and keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.4 Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5 Evaluating expressions . . . . . . . . . .. . . . . . . . . . . . . . 22
iii
2.6 Operators and operands . . . . . . . .. . . . . . . . . . . . . . . . . 23
2.7 The modulus operator . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.8 Order of operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.9 Operations on strings . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.10 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

246 pages, Kindle Edition

First published March 17, 2010

1 person is currently reading
10 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (50%)
4 stars
1 (50%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.