I launched notebook in Anaconda, and had the code in screenshot. I don't know what's wrong with my code.
Link to code
You need to actually run the first cell. Notebook is essentially a thin wrapper over a Python shell, and by default, it just executes one cell at a time. The
 indicates that you only ran the second cell.