© 2017

Beginning Python

From Novice to Professional


  • Includes ten projects to provide hands-on learning

  • Updated for Python 3

  • Covers language internals, database integration, network programming, and web services


Table of contents

  1. Front Matter
    Pages i-xxxii
  2. Magnus Lie Hetland
    Pages 1-24
  3. Magnus Lie Hetland
    Pages 25-44
  4. Magnus Lie Hetland
    Pages 45-58
  5. Magnus Lie Hetland
    Pages 59-70
  6. Magnus Lie Hetland
    Pages 71-99
  7. Magnus Lie Hetland
    Pages 101-127
  8. Magnus Lie Hetland
    Pages 129-148
  9. Magnus Lie Hetland
    Pages 149-162
  10. Magnus Lie Hetland
    Pages 163-193
  11. Magnus Lie Hetland
    Pages 195-239
  12. Magnus Lie Hetland
    Pages 241-252
  13. Magnus Lie Hetland
    Pages 253-259
  14. Magnus Lie Hetland
    Pages 261-271
  15. Magnus Lie Hetland
    Pages 273-287
  16. Magnus Lie Hetland
    Pages 289-306
  17. Magnus Lie Hetland
    Pages 307-320
  18. Magnus Lie Hetland
    Pages 321-336
  19. Magnus Lie Hetland
    Pages 337-342
  20. Magnus Lie Hetland
    Pages 343-351

About this book


Gain a fundamental understanding of Python’s syntax and features with this up–to–date introduction and practical reference. Covering a wide array of Python–related programming topics, including addressing language internals, database integration, network programming, and web services, you’ll be guided by sound development principles. Ten accompanying projects will ensure you can get your hands dirty in no time.

Updated to reflect the latest in Python programming paradigms and several of the most crucial features found in Python 3, Beginning Python also covers advanced topics such as extending Python and packaging/distributing Python applications.

You will:

  • Become a proficient Python programmer by following along with a friendly, practical guide to the language’s key features
  • Write code faster by learning how to take advantage of advanced features such as magic methods, exceptions, and abstraction
  • Gain insight into modern Python programming paradigms including testing, documentation, packaging, and distribution
  • Learn by following along with ten interesting projects, including a P2P file–sharing application, chat client, video game, remote text editor, and more


Python 3 database integration Python language internals network programming Open source

Authors and affiliations

  1. 1.TrondheimNorway

About the authors

Magnus Lie Hetland is an experienced Python programmer, having used the language since the late 1990s. He is also an associate professor of algorithms at the Norwegian University of Science and Technology, having taught algorithms for the better part of a decade. Hetland is the author of Practical Python and Beginning Python, first and second editions, as well as several scientific papers.

Bibliographic information


“Hetland’s Beginning Python is an excellent book for individuals new to programming or those with intermediate programming skills. … Throughout the book, he presents a number of examples that are easy to implement and illustrate various aspects of the discussed topic. … the text is strongly recommended for those seeking to learn the Python language. Summing Up: Highly recommended. Lower- and upper-division undergraduates; general readers.” (D. B. Mason, Choice, Vol. 55 (1), September, 2017)