Run Python script as CGI program with Apache2 in Linux / Wamp in Windows

If you’ve Apache & Python installed, you can execute your python scripts as CGI programs, which your visitors can access if you host the scripts in a server. You can write your scripts in python (file-name will end with .py) or in perl (extention .pl) or anything else which is compatible. Step 1 – Write […]

Python Tutorial: Dictionaries (Key-value pair Maps) Basics

Dictionary in Python is a dat type also known as map. You may be already familiar with them, if using Associative Arrays in PHP or Hash-tables in C++ or Java. You may imagine a dictionary as an array, where instead of numerical indexes (the first element of array is indexed as 0, the second element […]

Python Basics: Indent

Previous Article: Beginning Python Prgramming! How to Download, install, compile & run program in Python In this post I’ll point out some details about the Python language. Important concepts to be clarified. Python maintains indention strictly: In python, you should maintain indention strictly! This is necessary to tell python which portion of code is under a […]