Python Environment Setup

To write Python code, you must first have Python installed on your computer. You may also need to install a Python Development IDE such as Visual Studio Code or Pycharm IDE in addition to Python.

Install Python

Install Python on Windows 10

Install Python on Ubuntu 20.04/Ubuntu18.04/Linux

Install and Setup Python IDE

After you have installed Python on your computer, install the Visual Studio Code IDE by following these steps:

  1. Download Visual Studio Code from its official website.
  2. After download is complete, install it.
  3. Launch the Visual Studio Code IDE, go to View > Extensions and install the following extensions:
    • Python by Microsoft
    • Prettier - Code formatter

Note: To format code in Visual Studio Code, press Ctrl + Shift + I and save.