IntroductionUsing Code ExamplesInstallation and Practical ConsiderationsThe Zen of PythonHow to Run Python CodeA Quick Tour of Python Language SyntaxComments Are Marked by #End-of-Line Terminates a StatementSemicolon Can Optionally Terminate a StatementIndentation: Whitespace Matters!Whitespace Within Lines Does Not MatterParentheses Are for Grouping or CallingFinishing Up and Learning MoreBasic Python Semantics: Variables and ObjectsPython Variables Are PointersEverything Is an ObjectBasic Python Semantics: OperatorsArithmetic OperationsBitwise OperationsAssignment OperationsComparison OperationsBoolean OperationsIdentity and Membership OperatorsBuilt-In Types: Simple ValuesIntegersFloating-Point NumbersComplex NumbersString TypeNone TypeBoolean TypeBuilt-In Data StructuresListsTuplesDictionariesSetsMore Specialized Data StructuresControl FlowConditional Statements: if, elif, and elsefor loopswhile loopsbreak and continue: Fine-Tuning Your LoopsLoops with an else BlockDefining and Using FunctionsUsing FunctionsDefining FunctionsDefault Argument Values*args and **kwargs: Flexible ArgumentsAnonymous (lambda) FunctionsErrors and ExceptionsRuntime ErrorsCatching Exceptions: try and exceptRaising Exceptions: raiseDiving Deeper into Exceptionstry…except…else…finallyIteratorsIterating over listsrange(): A List Is Not Always a ListUseful IteratorsSpecialized Iterators: itertoolsList ComprehensionsBasic List ComprehensionsMultiple IterationConditionals on the IteratorConditionals on the ValueGeneratorsGenerator ExpressionsGenerator Functions: Using yieldExample: Prime Number GeneratorModules and PackagesLoading Modules: the import StatementImporting from Python’s Standard LibraryImporting from Third-Party ModulesString Manipulation and Regular ExpressionsSimple String Manipulation in PythonFormat StringsFlexible Pattern Matching with Regular ExpressionsA Preview of Data Science ToolsNumPy: Numerical PythonPandas: Labeled Column-Oriented DataMatplotlib: MATLAB-style scientific visualizationSciPy: Scientific PythonOther Data Science PackagesResources for Further Learning