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 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:
- Download Visual Studio Code from its official website.
- After download is complete, install it.
- 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.