Python Part 1: Setup and Introduction

Python Part 1: Setup and Introduction

Please Subscribe Youtube| Like Facebook | Follow Twitter


Welcome to Python beginner tutorial series. In this article you will learn how to setup Python on your machine. Python is a popular and versatile programming language used for a wide range of applications, from web development to scientific computing. If you’re new to Python and looking to set up your local development environment on Windows or Linux, this guide will help you get started.

Setting up Python on Windows:

  1. Visit the official Python website and download the latest version of Python for Windows.
  2. Run the installer and follow the instructions to install Python on your system. Make sure to select the option to add Python to your system PATH during installation.
  3. Verify that Python is installed correctly by opening a command prompt and typing “python –version” without quotes. You should see the installed Python version number displayed.

Setting up Python on Linux:

  1. Most Linux distributions come with Python pre-installed. To check if Python is already installed on your system, open a terminal and type “python –version” without quotes.
  2. If Python is not installed, you can install it using your distribution’s package manager. For example, on Ubuntu, you can install Python by typing “sudo apt-get install python3” without quotes in the terminal.

Setting up Visual Studio Code for Python:

  1. Download and install Visual Studio Code from the official website.
  2. Launch Visual Studio Code and install the Python extension from the extensions marketplace by clicking on the extensions icon on the left-hand side of the editor and searching for “Python”.
  3. Create a new file by clicking on “File” and selecting “New File”.
  4. Type the following code into the editor:
print("Hello World!")
  1. Save the file with a “.py” extension by clicking on “File” and selecting “Save As”. Choose a file name and save the file with the “.py” extension.
  2. Press F5 or go to “Run” and select “Run Without Debugging”. You should see “Hello World!” printed in the output window.

Python Beginner Tutorial Series

Please Subscribe Youtube| Like Facebook | Follow Twitter

Leave a Reply

Your email address will not be published. Required fields are marked *