Appendix B. Introduction to Python

Python is currently the most popular language for building machine learning projects, and this is why we use it for doing the projects in this book.

In case you’re not familiar with Python, this appendix covers the basics: the syntax and the language features we use in the book. It’s not meant to be an in-depth tutorial, but it should give you enough information to start using Python immediately after finishing the appendix. Note that it’s brief, and it’s aimed at people who already know how to program in any other programming language.

To get the best of this appendix, create a jupyter notebook, give it a name like appendix-b-python, and use it to execute the code from the appendix. Let’s start.

B.1 Variables ...

Get Machine Learning Bookcamp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.