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 […]

Making executable Scripts in Unix/Linux using Python

In unix/linux, you can make executable shell scripts using Python! You can write your python codes in any file, give it executable permission, Then simply run it by double clicking! The trick is… At the first line of your script, type #! followed by location of your Python interpreter #!/usr/bin/python print ‘Start coding herer’ # […]