Think Python

Python is an excellent way to get started in programming, and this clear, concise guide walks you through Python a step at a time--beginning with basic programming concepts before moving on to functions, data structures, and object-oriented design. This revised third edition reflects the growing rol...

Full description

Bibliographic Details
Main Author: Downey, Allen
Format: eBook
Language:English
Published: Sebastopol, CA O'Reilly Media, Inc. 2024
Edition:Third edition
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Infinite Recursion
  • Keyboard Input
  • Debugging
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Chapter 6. Return Values
  • Some Functions Have Return Values
  • And Some Have None
  • Return Values and Conditionals
  • Incremental Development
  • Boolean Functions
  • Recursion with Return Values
  • Leap of Faith
  • Fibonacci
  • Checking Types
  • Debugging
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Chapter 7. Iteration and Search
  • Loops and Strings
  • Exercise
  • Chapter 2. Variables and Statements
  • Variables
  • State Diagrams
  • Variable Names
  • The import Statement
  • Expressions and Statements
  • The print Function
  • Arguments
  • Comments
  • Debugging
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Chapter 3. Functions
  • Defining New Functions
  • Parameters
  • Calling Functions
  • Repetition
  • Variables and Parameters Are Local
  • Stack Diagrams
  • Tracebacks
  • Why Functions?
  • Debugging
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Chapter 4. Functions and Interfaces
  • The jupyturtle Module
  • Making a Square
  • Encapsulation and Generalization
  • Approximating a Circle
  • Refactoring
  • Stack Diagram
  • A Development Plan
  • Docstrings
  • Debugging
  • Glossary
  • Exercises
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Ask a Virtual Assistant
  • Chapter 5. Conditionals and Recursion
  • Integer Division and Modulus
  • Boolean Expressions
  • Logical Operators
  • if Statements
  • The else Clause
  • Chained Conditionals
  • Nested Conditionals
  • Recursion
  • Stack Diagrams for Recursive Functions
  • Cover
  • Copyright
  • Table of Contents
  • Preface
  • Who Is This Book For?
  • Goals of the Book
  • Navigating the Book
  • What's New in the Third Edition?
  • Getting Started
  • Resources for Teachers
  • Conventions Used in This Book
  • Using Code Examples
  • O'Reilly Online Learning
  • How to Contact Us
  • Acknowledgments
  • Chapter 1. Programming as a Way of Thinking
  • Arithmetic Operators
  • Expressions
  • Arithmetic Functions
  • Strings
  • Values and Types
  • Formal and Natural Languages
  • Debugging
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Exercise
  • Reading the Word List
  • Updating Variables
  • Looping and Counting
  • The in Operator
  • Search
  • Doctest
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Exercise
  • Chapter 8. Strings and Regular Expressions
  • A String Is a Sequence
  • String Slices
  • Strings Are Immutable
  • String Comparison
  • String Methods
  • Writing Files
  • Find and Replace
  • Regular Expressions
  • String Substitution
  • Debugging
  • Glossary
  • Exercises
  • Ask a Virtual Assistant
  • Exercise
  • Exercise
  • Exercise
  • Exercise