
Think Python
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- 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
- 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
- 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
- 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
- Chapter 9. Lists
- A List Is a Sequence
- Lists Are Mutable
- List Slices
- List Operations
- List Methods
- Lists and Strings
- Looping Through a List
- Sorting Lists
- Objects and Values
- Aliasing
- List Arguments
- Making a Word List
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Exercise
- Chapter 10. Dictionaries
- A Dictionary Is a Mapping
- Creating Dictionaries
- The in Operator
- A Collection of Counters
- Looping and Dictionaries
- Lists and Dictionaries
- Accumulating a List
- Memos
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Chapter 11. Tuples
- Tuples Are Like Lists
- But Tuples Are Immutable
- Tuple Assignment
- Tuples as Return Values
- Argument Packing
- Zip
- Comparing and Sorting
- Inverting a Dictionary
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Chapter 12. Text Analysis and Generation
- Unique Words
- Punctuation
- Word Frequencies
- Optional Parameters
- Dictionary Subtraction
- Random Numbers
- Bigrams
- Markov Analysis
- Generating Text
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Chapter 13. Files and Databases
- Filenames and Paths
- f-strings
- YAML
- Shelve
- Storing Data Structures
- Checking for Equivalent Files
- Walking Directories
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Chapter 14. Classes and Functions
- Programmer-Defined Types
- Attributes
- Objects as Return Values
- Objects Are Mutable
- Copying
- Pure Functions
- Prototype and Patch
- Design-First Development
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Chapter 15. Classes and Methods
- Defining Methods
- Another Method
- Static Methods
- Comparing Time Objects
- The __str__ Method
- The __init__ Method
- Operator Overloading
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Chapter 16. Classes and Objects
- Creating a Point
- Creating a Line
- Equivalence and Identity
- Creating a Rectangle
- Changing Rectangles
- Deep Copy
- Polymorphism
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Chapter 17. Inheritance
- Representing Cards
- Card Attributes
- Printing Cards
- Comparing Cards
- Decks
- Printing the Deck
- Add, Remove, Shuffle, and Sort
- Parents and Children
- Specialization
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Chapter 18. Python Extras
- Sets
- Counters
- defaultdict
- Conditional Expressions
- List Comprehensions
- any and all
- Named Tuples
- Packing Keyword Arguments
- Debugging
- Glossary
- Exercises
- Ask a Virtual Assistant
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Exercise
- Chapter 19. Final Thoughts
- Index
- About the Author
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.