Running your first Python code

There are many powerful IDEs that can be used for python programming. For someone who is just starting, I want to keep it simple. So I would recommend using Jupyter. It would be nice to install it on your computer but you don’t have to in the beginning. Go to:

  1. https://jupyter.org/try
  2. Click on “Try JupyterLab”
  3. When the Jupyter open loads in your browser, click on File > New Launcher
  4. Under Notebook click on Python3
  5. Type the following code in the first cell
print('hello')

Then hit shift+enter. You should see the output of the code, hello.

This JupyterLab is an easy place to get started. However, as you learn more, you will run into functions not supported on JupyterLab. Then you would need to either install command line python or Jupyter.

To install command line python, go to http://www.python.org

To install Jupyter, go to https://jupyter.org/