You can run python code in many ways. Listing the set of popular options below. I am assuming you have installed Anaconda for python on your system, hence all below options will be available.
- From command prompt
- IDLE
- Spyder IDE
- Pycharm IDE
- Jupyter Notebook
Command Prompt
- Open command prompt
- type python
- Python prompt (>>>) will appear
- Start typing your commands there

IDLE
This a a slightly better place to write python commands! This offers features like autocompletion of command and help for libraries.
- Type IDLE to find the program in the start menu
- Click on the IDLE icon
- A white window will appear with python prompt (>>>)
- Start typing your commands there


Spyder IDE
- Type Spyder to find the program in the start menu
- Click on the Spyder icon
- Spyder application will open
- Start typing your commands in the left side panel
- More information about navigating Spyder IDE can be found here

Pycharm IDE
- Type pycharm in the start menu to find the program
- Click on the pycharm icon
- A black window will open
- Start typing your commands in the left side panel
- More information about Pycharm can be found here

Jupyter Notebook
- Type ‘jupyter notebook’ in start menu to find the program
- Click on the jupyter notebook icon
- A black window will appear, which will start the server for jupyter on your localhost
- Jupyter notebook will open inside a browser with URL: “http://localhost:8888/tree”
- Click on the drop down on the right hand side called “New”
- Select “Python 3” from the drop down
- A new webpage will open as “Untitled”
- Start typing your commands in the cells.
- To execute the cells, use the “run” button from the top menu
- More information about Jupyter notebooks can be found here


Personally I prefer using Jupyter notebook among all these options. The reasons are easy code sharing, collaboration between team members, and cloud based development.
Author Details
Lead Data Scientist
Farukh is an innovator in solving industry problems using Artificial intelligence. His expertise is backed with 10 years of industry experience. Being a senior data scientist he is responsible for designing the AI/ML solution to provide maximum gains for the clients. As a thought leader, his focus is on solving the key business problems of the CPG Industry. He has worked across different domains like Telecom, Insurance, and Logistics. He has worked with global tech leaders including Infosys, IBM, and Persistent systems. His passion to teach inspired him to create this website!
