Preface Part 1.Python Basics 1.ATasteofPy Mysteries Little Programs A Bigger Program Python in the Real Worid python Versus the Language from Planet X Why Python Why Not Python Python 2Versus Python 3 Installing python Running python Using the Interactive Interpreter Using python Files What's Next Your Moment ofZen Comingup ThingstoDo 2.Data:Types,Values,Variables,and Names Python Data Are 0bjects Types Mutability Literal Values Variables Assignment Variables Are Names,Not Places Assigning to Multiple Names Reassigning a Name Copying Choose Good、Variable Names Coming Up ThingstoDo 3.Numbers Booleans Integers Literal Integers Integer Operations Integers and Variables Precedence Bases Type Conversions HowBigIs anint Floats Math Functions ComingVp ThingstoDo 4.Choosewithif Comment with Continue Lines with
Compare with if,elif,and else WhatIsTrue Do Multiple Comparisons with in New:IAmtheWalrus ComingUp ThingstoDo 5.Text Strings Create with Quotes Create with str() Escapewith Combine by Using Duplicate with Get aCharacterwith …… 6.Loop with while and for 7.Tuples and Lists 8.Dictionaries and Sets 9.Functions 10.Oh Oh:Objects and Classes 11.Modules,Packaties,and Goodies Part I I.Python in Practice 12.Wrangle and Mangle Data 13.Calendars and Clocks 14.Files and Directories 15.Data in Time:Processes and Concurrency 16.Data in a Box:Persistent Storage 17.Data in Space:Networks 18.The Web,Untangled 19.Be a Pythonista 20.PyArt 21.PyatWork 22.PySci A.Hardware and Software for Beginning Programmers B.Install Python 3 C.Something Completely Different:Async D.Answersto Exercises E.Cheat Sheets 1ndex