A crash course on Python
If you don't know Python, read this section to learn the fundamentals. Python is a very accessible language and, if you have ever programmed, it will only take you a few minutes to learn the basics.
Open a new notebook and type the following in the first cell:
In : print("Hello world!") Out: Hello world!
Here is a screenshot:
Note that the convention chosen in this book is to show Python code (also called the input) prefixed with
In [x]: (which shouldn't be typed). This is the standard IPython prompt. Here, you should just type
print("Hello world!") and then press ...