View on GitHub

Python-Tutorial

https://github.com/kdheepak/Python-Tutorial

print("hello world")
hello world

Introduction to Jupyter Notebooks

There are two modes: normal mode and insert mode.

See whether the cursor is visible. Press ESC to enter normal mode. Press Enter to enter insert mode.

In normal mode,

There are also two types of cells, code cells and markdown cells

This is a markdown cell. Double click on me to edit the cell.

print("This is a code cell")
This is a code cell

Convert cells

print("""
Convert this cell from a code cell to a markdown cell by pressing `m` in normal mode.
Convert it back to a code cell by pressing `y` in normal mode.
""")