This Tutorial should not take more than 10 minutes to follow and complete.
In this Tutorial, we will see step-by-step how to install Python on Visual Studio Code and execute the "Hello World" program to test!
Step 1: Prerequisites
- Make sure you have Python 3 Installed on your device.
- Make sure you have Visual Studio Code Installed on your device (Windows/Mac/Linux)
Tutorial: Installing Python using Brew
Step 2: Downloading VS Code Python Extension
- Open VS Code,
- Now Open Palette using Keyboard shortcuts:
For Windows: Ctrl + Shift + P
For Mac: ⌘ Command + Shift + P - Now Type and select > Extensions: Install Extensions
- Now Search for Python and click install.
- And you are all set to get started with Python Programming in VS Code!
Step 3: Testing using Hello Python! Program
- From the Menu select File -> New File
- Wirte print("Hello Python!")
- Save the file as "hello.py"
- You will see an alert "Do you want to install the recommended extensions for Python?" click Install
- Go to your hello.py file and you should see a execute button at the top (as shown in the image), click on it
- You should see Hello Python! on Console!
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Python,
- Python List of Lists with Examples
- Fix: ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none) ERROR: No matching distribution found for tkinter
- How to Convert Python Notebook .ipynb (JSON) to Executable .py Module
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- Python: Pandas Merge Indicator (Left, Right and Both) Example
- Fix: EOFError Exception in Python
- How to URL Decode a Query String in Python
- How to take user input from the console in a Python program
- Compare two lists in Python and return matches
- How to change the Python Default version
- Fix: KeyError: exception in Python
- How to get the Execution Time of A Python Program
- Fix: ModuleNotFoundError: No module named boto3 [Python]
- How to get unique values from a list in Python
- How to pip install Python Modules in VSCode
- Python: Fix - TypeError: NoneType object is not iterable
- How to delete a file using Python code example
- How to create a dictionary comprehension in Python
- Python: Get just the filename without extension using Path
- How to comment out a block of code in Python
- How to add two float numbers in Python
- Python: How to POST Json Data with HTTP Request
- Get MD5 Hash as Checksum of a String in Python
- Python - Convert float to String
- How to Parse XML String in Python
More Posts:
- How to Adjust macOS System Font Size - MacOS
- MySQL: Error Code: 1175 You are using safe update mode - MySQL
- How to Restart Apple Silicon based Mac (M1/M2 Chip) in Safe Mode - MacOS
- Delete blank lines in a file using Notepad++ - NotepadPlusPlus
- Google Local Guide Program and Perks of Contributing to Google Maps - Google
- Program 6: Find Sum of Two Floating Numbers - 1000+ Python Programs - Python-Programs
- How to add days to a date in Python - Python
- How to delete all text after a character or string in Notepad++ - NotepadPlusPlus