Skip to content
SunilOS edited this page Sep 11, 2024 · 6 revisions

Welcome to the SOSPython wiki!

Installing Python

Get the latest version of Python from https://www.python.org/downloads/

Click on "Download Python" button and download installer

Windows installer will download python-x.x.x.exe. You need to run this .exe to install python. When you run .exe then it will lunch pop screen and ask from Install Launcher and Add Path. Select both options and click on the Install Now link.

Once Python is installed then you can verify its installation by checking python version from a command prompt by executing the following command: python --version It will show you output as version x.x.x.

Installing Python Editor

There are many Python editors available online such as Atom, Spyder, Thonny, Sublime Text3, etc. you can use any of them but I found visual studio code editor is most user-friendly that is used in this tutorial.

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS, and Linux. It comes with built-in support for JavaScript, TypeScript, and Node.js and has a rich ecosystem of extensions for other languages.

You can download Visual Studio Code from visual studio official website by clicking on this link - https://code.visualstudio.com/docs

Create your first Python Program

Let us see how you can make and run your first Python program using Notepad and command prompt:

  1. Create a folder called test at c: drive.
  2. Go to c:\test folder using >cd c:\test command.
  3. Create a file Hello.py using any text editor like Notepad.
  4. Extension of the file must be .py
  5. Type print statement in this file:
  6. print("Hello Python")
  7. Save the file in c:\test folder.
  8. Run your program using the following command
  9. c:\test>python Hello.py
  10. It will print"Hello Python" at the command prompt.
  11. If you are able to see "Hello Python" at the command prompt then congratulations, you have run your first Python program.

Clone this wiki locally