Portable, powerful, and a breeze to use, Python is ideal for both standalone programs and scripting applications. With this hands-on book, you can master the fundamentals of the core Python language quickly and efficiently, whether you're new to programming or just new to Python. Once you finish, you will know enough about the language to use it in any application domain you choose. Learning Python is based on material from author Mark Lutz's popular training courses, which he's taught over the past decade. Each chapter is a self-contained lesson that helps you thoroughly understand a key component of Python before you continue. Along with plenty of annotated examples, illustrations, and chapter summaries, every chapter also contains Brain Builder, a unique section with practical exercises and review quizzes that let you practice new skills and test your understanding as you go. This book covers: Types and Operations -- Python's major built-in object types in depth: numbers, lists, dictionaries, and more Statements and Syntax -- the code you type to create and process objects in Python, along with Python's general syntax model Functions -- Python's basic procedural tool for structuring and reusing code Modules -- packages of statements, functions, and other tools organized into larger components Classes and OOP -- Python's optional object-oriented programming tool for structuring code for customization and reuse Exceptions and Tools -- exception handling model and statements, plus a look at development tools for writing larger programs. Learning Python gives you a deep and complete understanding of the language that will help you comprehend any application-level examples of Python that you later encounter. If you're ready to discover what Google and YouTube see in Python, this book is the best way to get started.
The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.
First off, Learning Python shows the relationships among Python scripts and their interpreter (in a mostly platform-neutral way). Then, the authors address the mechanics of the language itself, providing illustrations of how Python conceives of numbers, strings, and other objects as well as the operators you use to work with them. Dictionaries, lists, tuples, and other data structures specific to Python receive plenty of attention including complete examples.
Authors Mark Lutz and David Ascher build on that fundamental information in their discussions of functions and modules, which evolve into coverage of namespaces, classes, and the object-oriented aspects of Python programming. There's also information on creating graphical user interfaces (GUIs) for Python applications with Tkinter.
In addition to its careful expository prose, Learning Python includes exercises that both test your Python skills and help reveal more elusive truths about the language.
Customer Reviews:
Avg. Customer Rating: 4.0 / 5.0
Best Book For Python Beginners:
Very well written and easy to understand. One of he best introductory programming books I have read. If you want to learn Python this book will help. However to master any programming language you need to practice and write programs. I would recommend opening python and following along with the author.
If books were measured by weight...:
I just spent a few days going through this book and learned a lot. I've been working with PHP for years, but never did much complicated code. I studied Java about 8 years ago also and learned a lot about OOP from that. But never did any programming in Java. So it was all concept, no experience. My reason for reading this book was to start using Python with Django. I wanted to learn Python first so I would understand the framework better. This book covers in excruciating detail many of the finer... more info
Somewhat disappointing:
As a newcomer to Python, I find this book educational but somewhat inadequate for getting one's feet wet with a new programming language. Essentially all the sample code in the book is in the form of very short snippets run from the command line. There is almost nothing in the way of a full-blown sample Python program showing the reader what it's all supposed to look like in the end. Python's strengths as a programming language are ostensibly its readability and ease of use, but you get no sense of... more info
Decent book, bad editing (kind of):
I wanted to like this book. As a general rule, I give the benefit of a doubt to O'Reilly books, and rarely am I mistaken. But this was one of the rare exceptions. In my experience, there are two trains of thought when it comes to learning a programming language:
1) Start right in with a book, using it to familiarize yourself with the language while you use the language to start fleshing out stuff that you learn in the book -- let's call this the "synergistic" or maybe "complementary" approach: using... more info