Posts

Showing posts with the label Jupyter

2.Running Python Program-IDLE,Interactive Shell, Jupyter, How Python works

Image
  Download the latest release of Python from  www.python.org   depending on your OS Windows,Linux or Mac Complete the installation.This will also install IDLE( Integrated Development Environment). Visit  https://docs.python.org/3/library/idle.html  to get complete details of IDLE. 1.Open IDLE by clicking the application icon 2.Open File menu and click New File and type your first script ( Eg: print("welcome to Python") 3.Save your file with .py extension ( Eg:test.py) 4.From the  Run menu  click the  Run Module(  or press F5-short cut).This will run the script 5.From the  File  menu choose  Exit  to quit from IDLE How to Run Python Code Interactively A widely used way to run Python code is through an interactive session. To start a Python interactive session, just open a command-line or terminal and then type in python, or python3 depending on your Python installation, and then hit Enter. Here’s an example of how to do this on Linux: Open Terminal ( Control-Alt-T) $ python3