Table of contents : Why Python? -- Which version of Python? -- The interpreter -- Running programs -- Writing and reading data -- Variables -- Basic types -- More about objects -- Numbers -- Strings -- Formatting strings -- dir, help, and pdb -- Strings and methods -- Comments, booleans, and none -- Conditionals and whitespace -- Sequences : lists, tuples, and sets -- Iteration -- Dictionaries -- Functions -- Indexing and slicing -- File input and output -- Classes -- Subclassing a class -- Exceptions -- Importing libraries -- Libraries : packages and modules -- A complete example -- Onto bigger and better -- Appendix A : testing in Python.