This is the code repository for Learn Python Programming, Fourth Edition, published by Packt.
A comprehensive, up-to-date, and definitive guide to learning Python
The authors of this book are - Fabrizio Romano, Heinrich Kruger
Learn Python Programming, Fourth Edition, provides a comprehensive, up-to-date introduction to Python programming, covering fundamental concepts and practical applications. This edition has been meticulously updated to include the latest features from Python versions 3.9 to 3.12, new chapters on type hinting and CLI applications, and updated examples reflecting modern Python web development practices. This Python book empowers you to take ownership of writing your software and become independent in fetching the resources you need. By the end of this book, you will have a clear idea of where to go and how to build on what you have learned from the book.
Through examples, the book explores a wide range of applications and concludes by building real-world Python projects based on the concepts you have learned. This Python book offers a clear and practical guide to mastering Python and applying it effectively in various domains, such as data science, web development, and automation.
- Install and set up Python on Windows, Mac, and Linux
- Write elegant, reusable, and efficient code
- Avoid common pitfalls such as duplication and over-engineering
- Use functional and object-oriented programming approaches appropriately
- Build APIs with FastAPI and program CLI applications
- Understand data persistence and cryptography for secure applications
- Manipulate data efficiently using Python's built-in data structures
- Package your applications for distribution via the Python Package Index (PyPI)
- Solve competitive programming problems with Python
This book will help you explore the foundations of Python programming and learn how Python can be used to achieve results.
- A Gentle Introduction to Python
- Built-In Data Types
- Conditionals and Iteration
- Functions, the Building Blocks of Code
- Comprehensions and Generators
- OOP, Decorators, and Iterators
- Exceptions and Context Managers
- Files and Data Persistence
- Cryptography and Tokens
- Testing
- Debugging and Profiling
- Introduction to Type Hinting
- Data Science in Brief
- Introduction to API Development
- CLI Applications
- Packaging Python Applications
- Programming Challenges,
If you feel this book is for you, get your copy today!
With the following software and hardware list you can run all code files present in the book.
Chapter | Software required | Link to the software | Hardware specifications | OS required |
---|---|---|---|---|
All chapters | Python 3.10+ | https://www.python.org/downloads/ | Should work on any recent computer | Windows, MacOS, Linux (any), macOS, Windows |
You can get more engaged on the discord server for more latest updates and discussions in the community at Discord
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost. Simply click on the link to claim your free PDF. Free-Ebook
We also provide a PDF file that has color images of the screenshots/diagrams used in this book at GraphicBundle
Fabrizio Romano was born in Italy in 1975. He holds a master’s degree in computer science engineering from the University of Padova. He’s been working as a professional software developer since 1999. Fabrizio has been working at Sohonet since 2016, where he currently serves as a development manager. In 2020, the Television Academy honored him and his team with an Emmy Award in Engineering Development for advancing remote collaboration.
Heinrich Kruger was born in South Africa in 1981. He holds a master’s degree in computer science from Utrecht University in the Netherlands. He has been working as a professional software developer since 2014. Heinrich has been working alongside Fabrizio in the Product Team at Sohonet since 2017. In 2020, the Television Academy honored them with an Emmy Award in Engineering Development for advancing remote collaboration.