Learn Enough Python to Be Dangerous: Software Development, Flask Web Apps, and Beginning Data Science with Python

Book description

All You Need to Know, and Nothing You Don't, to Solve Real Problems with Python

Python is the dominant programming language for data science and an ideal first programming language for web development and many other uses. You should learn Python, but you don't need to learn "everything" to get started, just how to use it efficiently to solve real problems. In Learn Enough Python to Be Dangerous, renowned instructor Michael Hartl teaches the specific concepts, skills, and approaches you need to be professionally productive.

Even if you've never programmed before, Hartl helps you quickly build technical sophistication and master the lore you need to succeed. Hartl introduces Python both as a general-purpose language and as a specialist tool for web development and data science, presenting focused examples and exercises that help you internalize what matters, without wasting time on details pros don't care about. Soon, it'll be like you were born knowing this stuff--and you'll be suddenly, seriously dangerous.

Learn enough about . . .

  • Applying core Python concepts with the interactive interpreter and command line

  • Writing object-oriented code with Python's native objects

  • Developing and publishing self-contained Python packages

  • Using elegant, powerful functional programming techniques

  • Building new objects, and extending them via Test-Driven Development (TDD)

  • Leveraging Python's exceptional shell scripting capabilities

  • Creating and deploying a full web app, using routes, layouts, embedded Python, and forms

  • Getting started with data science tools for calculation, visualization, analysis, and machine learning

  • Mastering concrete and informal skills every developer needs

Like this book? Don't miss Michael Hartl's companion video tutorial, Learn Enough Python to Be Dangerous LiveLessons.

Michael Hartl's Learn Enough Series includes books and video courses that focus on the most important parts of each subject, so you don't have to learn everything to get started--you just have to learn enough to be dangerous and solve technical problems yourself.

Table of contents

  1. Cover Page
  2. Title Page
  3. Contents at a Glance
  4. Contents
  5. Preface
    1. Chapter by Chapter
    2. Additional Features
    3. Final Thoughts
    4. Learn Enough Scholarships
  6. Acknowledgments
  7. About the Author
  8. Chapter 1. Hello, World!
    1. 1.1 Introduction to Python
    2. 1.2 Python in a REPL
    3. 1.3 Python in a File
    4. 1.4 Python in a Shell Script
    5. 1.5 Python in a Web Browser
  9. Chapter 2. Strings
    1. 2.1 String Basics
    2. 2.2 Concatenation and Interpolation
    3. 2.3 Printing
    4. 2.4 Length, Booleans, and Control Flow
    5. 2.5 Methods
    6. 2.6 String Iteration
  10. Chapter 3. Lists
    1. 3.1 Splitting
    2. 3.2 List Access
    3. 3.3 List Slicing
    4. 3.4 More List Techniques
    5. 3.5 List Iteration
    6. 3.6 Tuples and Sets
  11. Chapter 4. Other Native Objects
    1. 4.1 Math
    2. 4.2 Times and Datetimes
    3. 4.3 Regular Expressions
    4. 4.4 Dictionaries
    5. 4.5 Application: Unique Words
  12. Chapter 5. Functions and Iterators
    1. 5.1 Function Definitions
    2. 5.2 Functions in a File
    3. 5.3 Iterators
  13. Chapter 6. Functional Programming
    1. 6.1 List Comprehensions
    2. 6.2 List Comprehensions with Conditions
    3. 6.3 Dictionary Comprehensions
    4. 6.4 Generator and Set Comprehensions
    5. 6.5 Other Functional Techniques
  14. Chapter 7. Objects and Classes
    1. 7.1 Defining Classes
    2. 7.2 Custom Iterators
    3. 7.3 Inheritance
    4. 7.4 Derived Classes
  15. Chapter 8. Testing and Test-Driven Development
    1. 8.1 Package Setup
    2. 8.2 Initial Test Coverage
    3. 8.3 Red
    4. 8.4 Green
    5. 8.5 Refactor
  16. Chapter 9. Shell Scripts
    1. 9.1 Reading from Files
    2. 9.2 Reading from URLs
    3. 9.3 DOM Manipulation at the Command Line
  17. Chapter 10. A Live Web Application
    1. 10.1 Setup
    2. 10.2 Site Pages
    3. 10.3 Layouts
    4. 10.4 Template Engine
    5. 10.5 Palindrome Detector
    6. 10.6 Conclusion
  18. Chapter 11. Data Science
    1. 11.1 Data Science Setup
    2. 11.2 Numerical Computations with NumPy
    3. 11.3 Data Visualization with Matplotlib
    4. 11.4 Introduction to Data Analysis with pandas
    5. 11.5 pandas Example: Nobel Laureates
    6. 11.6 pandas Example: Titanic
    7. 11.7 Machine Learning with scikit-learn
    8. 11.8 Further Resources and Conclusion

Product information

  • Title: Learn Enough Python to Be Dangerous: Software Development, Flask Web Apps, and Beginning Data Science with Python
  • Author(s): Michael Hartl
  • Release date: July 2023
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 9780138051143