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.
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.
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:
- Right-click 'My Computer'.
- Select 'Properties' at the bottom of the Context Menu.
- Select 'Advanced system settings'
- Click 'Environment Variables...' in the Advanced Tab
- 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