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 […]
Category Archives: Beginning Python
What you’re looking for is lastrowid property of a cursor object. Code: Thanks to this article on the Internet
A for loop in C/C++/PHP/Java Or many well-known programming language will appear as: Python has no C-style for loop, which is has is for in loop like foreach loop available in PHP. To achive the same goal as the code snippet written in C above, we may write following code in python:
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 […]
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 […]