Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Python Apprentice

You're reading from   The Python Apprentice Introduction to the Python Programming Language

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781788293181
Length 352 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Austin Bingham Austin Bingham
Author Profile Icon Austin Bingham
Austin Bingham
Robert Smallshire Robert Smallshire
Author Profile Icon Robert Smallshire
Robert Smallshire
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Getting started FREE CHAPTER 2. Strings and Collections 3. Modularity 4. Built-in types and the object model 5. Exploring Built-in Collection types 6. Exceptions 7. Comprehensions, iterables, and generators 8. Defining new types with classes 9. Files and Resource Management 10. Unit testing with the Python standard library 11. Debugging with PDB 12. Afterword – Just the Beginning
13. Virtual Environments 14. Packaging and Distribution 15. Installing Third-Party Packages

Overview

This book comprises 10 chapters (not including this one). The chapters build on one another, so unless you've already had some exposure to Python you'll need to follow them in order. We'll start with getting Python installed into your system and orienting you a bit.

We'll then cover language elements, features, idioms, and libraries, all driven by working examples that you'll be able to build along with the text. We're firm believers that you'll learn more by doing than by just reading, so we encourage you to run the examples yourself.

By the end of the book you'll know the fundamentals of the Python language. You'll also know how to use third-party libraries, and you'll know the basics of developing them yourself. We'll even cover the basics of testing so that you can ensure and maintain the quality of the code you develop.

The chapters are:

  1. Getting started: We go through installing Python, look at some of the basic Python tools, and cover the core elements of the language and syntax.

  2. Strings and Collections: We look at some of the fundamental complex data types: strings, byte sequences, lists, and dictionaries.

  3. Modularity: We look at the tools Python has for structuring your code, such as functions and modules.

  4. Built-in types and the object model: We examine Python's type system and object system in detail, and we develop a strong sense of Python’s reference semantics.

  5. Exploring Built-in Collection Types: We go into more depth on some of the Python collection types, as well as introduce a few more.

  6. Exceptions: We learn about Python's exception-handling system and the central role that exceptions play in the language.

  7. Comprehensions, iterables, and generators: We explore the elegant, pervasive, and powerful sequence-oriented parts of Python such as comprehensions and generator functions.

  8. Defining new types with classes: We cover developing your own complex data types in Python using classes to support object-oriented programming.

  9. Files and Resource Management: We look at how to work with files in Python, and we cover the tools Python has for Resource Management.

  10. Unit testing with the Python standard library: We show you how to use Python's unittest package to produce defect-free code that works as expected.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime