This edition offers updated content covering Python 3.9 to 3.12, new chapters on type hinting and CLI applications, and expanded practical examples, making it the ideal resource for both new and experienced Python programmers
Key Features:
- Create and deploy APIs and CLI applications, leveraging Python's strengths in scripting and automation
- Stay current with the latest features and improvements in Python, including pattern matching and the latest exception handling syntax
- Engage with new real-world examples and projects, including competitive programming problems, to solidify your understanding of Python
Book Description:
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. The Python book empowers you to take ownership of writing your software and become independent in fetching the resources you need. 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.
What You Will Learn:
- Install and set up Python on Windows, Mac, and Linux
- Write Elegant, Reusable, and Efficient Code
- Avoid Common Pitfalls like 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
Who this book is for:
This Python programming book is for everyone who wants to learn Python from scratch, as well as experienced programmers looking for a reference book. Prior knowledge of basic programming concepts will help you follow along, but it's not a prerequisite
Table of Contents
- A Gentle Introduction to Python
- Built In Data Types
- Conditionals and Iterations
- 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