Python is not the fastest language, and it does not need to be. The heavy arithmetic in machine learning happens inside libraries written in C and CUDA. Python is the language you use to describe the work: load this data, shape it like this, train that model, show me the result. It is short to write and easy to read, so it became the common language of the field.
How these lessons work
Every grey box with a Run button is real Python. Press it and the code runs on our server; the output appears underneath. Change anything and run it again: you cannot break anything.
Enroll in the course to run this code.
The first line prints text. The second prints 14, not 20: multiplication happens before addition, just as in maths.
What you will learn
Values and the names you give them, lists and dictionaries, functions and loops, and comprehensions: the one-line transformations you will see in every data science notebook.