Book Description
This book started out as about 30 pages of notes for students in my introductory programming class at Mount St. Mary's University. Most of these students have no prior programming experience, and that has affected my approach. I leave out a lot of technical details and sometimes I oversimplify things. Some of these details are filled in later in the book, though other details are never filled in. But this book is not designed to cover everything, and I recommend reading other books and the Python documentation to fill in the gaps.
The style of programming in this book is geared towards the kinds of programming things I like to do - short programs, often of a mathematical nature, small utilities to make my life easier, and small computer games. In fact, the things I cover in the book are the things that I have found most useful or interesting in my programming experience, and this book serves partly to document those things for myself. This book is not designed as a thorough preparation for a career in software engineering. Interested readers should progress from this book to a book that has more on computer science and the design and organization of large programs.
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download A Practical Introduction to Python Programming ebook for free in PDF format (2.1 MB).
Table of Contents
Part I
Basics
Chapter 1
Getting Started
Chapter 2
For loops
Chapter 3
Numbers
Chapter 4
If statements
Chapter 5
Miscellaneous Topics I
Chapter 6
Strings
Chapter 7
Lists
Chapter 8
More with Lists
Chapter 9
While loops
Chapter 10
Miscellaneous Topics II
Chapter 11
Dictionaries
Chapter 12
Text Files
Chapter 13
Functions
Chapter 14
Object-Oriented Programming
Part II
Graphics
Chapter 15
GUI Programming with Tkinter
Chapter 16
GUI Programming II
Chapter 17
GUI Programming III
Chapter 18
Further Graphical Programming
Part III
Intermediate Topics
Chapter 19
Miscellaneous topics III
Chapter 20
Useful modules
Chapter 21
Regular expressions
Chapter 22
Math
Chapter 23
Working with functions
Chapter 24
The itertools and collections modules
Chapter 25
Exceptions