One of the very important things that Python offers to programmers, is the great lists handling functions. Lists are one great data type that you can utilize for lots of different tasks. Since Python is a high level language, it makes our handling lists a real breeze.
I will claim it. If you’re not using Python, you are losing a lot. At that point, i understand that some of you will argue that with saying how nice perl is or how great things work at ruby on rails. Well, get to know all scripting worlds if you like. Then, come back to Python programming.
I can bet that quite some of you use Twitter often, while some others use it all the time. It’s a quite addicting website, at least for the first few months of its usage. When i first registered at Twitter and started learning more about it, i thought that it would be a good idea to use it in order to leave short automated tweets about the posts on my Wordpress blog (this was actually about another website, not codercaste).
From the very first programs that you create using Python, you may notice that you really need to specify some arguments right before your program executes. For instance, say that you have created a program and you need to get some input from the user. For the sake of this tutorial, we will be creating a simple Python program grabbing two arguments from the command line, adding them together and then producing us with the result. The simplest way to do it is using the standard sys.argv. One other more sophisticated option is the getopt function. For case of simplicity and because most people tend to use simple scripts, we will be using sys.argv here. For more information on the getopts way, please refer here.
If you are new to Python programming or in computer programming in general, it would certainly be important for you to get some information on the advantages and disadvantages of the language and understand why would somebody want to use it. In this post, i will not enter into the technical details of the language nor use fancy words to describe you some of the language specifics. My intention is to give you some simple insight so that you can decide for yourself whether or not it would be a good idea for you to choose Python as your main programming language or just use it for certain projects.