Net-informations.com

Python Getting Started

Python is really an exciting and robust language. This language has the perfect combination of performance and powerful features that make developing application in Python both fun and easy. Python 3 is the latest version and is considered to be the future of Python world of programming.

Install Python

If you need to install Python in your system, you may download the most recent stable version.

Visit https://www.python.org/downloads/ and download the current latest version.

Run the downloaded file. This brings up the Python install wizard, which is really easy to use.


Python download and install

Setting path for Python

To temporarily set environment variables for run Python interpreter, open Command Prompt and use the set command:

To permanently set the default environment variables for run Python interpreter:

  1. Right-click 'My Computer'.
  2. Select 'Properties' at the bottom of the Context Menu.
  3. Select 'Advanced system settings'
  4. Click 'Environment Variables...' in the Advanced Tab
  5. Under 'System Variables': Click Edit

Add python directory path to the end of the list (the paths are separated by semicolons(;))

For detailed instruction for setting up Python path: How to set python path

Your First Python Program

Open a text editor (eg. Notepad) and type in the following code exactly as written:

Save the file as "first.py".

To run this Python source file in script mode, Open command prompt and change to the directory you save the python file (first.py) and type at the command prompt:

You will see the line "Hello World!" as output.

For more detailed tutorial on.... Introduction to Python Programming










net-informations.com (C) 2021    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About