One of the most complete books for learning how to program in Python.
Review of Learning Python:
Learning Python is an easy to follow and practical book that will teach anyone with basic programming knowledge all the main concepts of Python. Full of quizzes and exercises, this self-paced book will get you writing efficient and high-quality python code.
It is an extensive book, with more than 1600 pages, however, it covers everything you need to know about python: from its philosophy, virtues and data structures to Object oriented programming and exception handling. It also details many of the more advanced features of the language that can take your Python programming skills from average to master.
It also explains all the curiosities ans insights behind the syntax, detailing its origin, the way Python works, and what it does and how it works when it executes your code. It is also a wonderful text to have close by to freshen concepts or solve doubts. The contents of the book are described in the next section.
Contents of Learning Python:
Part I. Getting Started:
This ends Part I, which is the most relevant for beginners. Part II is called Statements and Syntax, and it talks about loops, conditionals, iterations and comprehensions, functions and even generators and scopes. Everything you need to know to get your programs organised and running.
Part III speaks about the different modules and packages: what they are, how to import them, etc…
Part IV exploits the Object Oriented programming Python interfaces. It introduces POO, classes, and gives some cool examples and tips on how to do this to obtain the best results.
Part V introduces the reader to exceptions and tools, what they are used for and how to manage them.
Lastly, some advanced topics like decorators, metaclasses, and different encodings are covered.
You can find all the different chapters here:
It is a very extensive book that can serve beginners and experts alike, and that is why we recommend it to anybody who wants to get up and running in this programming language that is so relevant in Machine Learning and Artificial Intelligence.
The best things about this book are:
The only bad thing we can say is that it is a really big book; from our point of view it could have been divided into two different tomes, but oh well, you get everything you need to be an expert in Python in a big block of pages.
After reading a book like this, you will be ready to tackle Machine Learning books and courses. Check them out here!
Learning Python by Mark Lutz
- O'Reilly Media
- Lutz, Mark (Author)
- English (Publication Language)
- 1643 Pages - 07/30/2013 (Publication Date) - O'Reilly Media (Publisher)
Additional online resources to learn elegant and awesome Python are:
- PEP8 Python Style guide.
- Kaggle Learn Python Tutorials.
- Real Python programming guides.
- Code Wars: code code and code.
- DataCamp Python Courses.
Thanks for reading How to Learn Machine Learning and have a wonderful day!