November 2016

Exception handling in Python 3.5

By | 2016-11-04T20:07:01+00:00 November 4th, 2016|Python Tutorial|

In this article I will introduce you to exception handling. In the previous articles in this series we use exception handling to cover some rare exception cases (remember the Guess the Number game?) and now it is time to explain how to do it in your own application — and when to do it. [...]

January 2016

Python setup for Windows, Mac, Linux

By | 2016-01-27T15:40:56+00:00 January 27th, 2016|Python Tutorial|

Python is available for various platforms which includes Linux, Windows and Mac OS. So here we are going to understand how to setup python environment. For the local environment setup open the terminal window and type there “python” to know that it is already installed or not, if installed then which version. […]

Object Oriented Programming in Python

By | 2016-01-02T18:40:29+00:00 January 2nd, 2016|Python Tutorial|

As in Python it is not necessary to create our code into classes while developing program as we can use functions also which is known as Procedural Programming. However, a procedural programming is used for writing small, short and simple programs whereas object oriented programming (OOP) programs becomes more important as the programs grows in [...]

December 2015

Dates and times with Python

By | 2015-12-20T09:21:30+00:00 December 20th, 2015|Python Tutorial|

Sometimes we have to work with dates and times. I use dates less than times because with times you can measure code execution time which is sometimes essential (for my website scraping book’s performance measurement is the core part I guess). […]

Object-Oriented Programming (OOP)

By | 2015-12-20T09:17:03+00:00 December 20th, 2015|Python Tutorial|

Now we arrived at object-oriented programming. This has (had) its hype where every language was designed around objects and Python developer Guido van Rossum thought “Why not?” and added classes to support object-oriented development. Some python evangelists think this was a bad decision, some think it was a good approach… […]

November 2015

Python function

By | 2015-11-29T18:15:36+00:00 November 29th, 2015|Python Tutorial|

Now we have learned the basics of Python programming: variables, collections and loops. If you have followed the examples and the tutorial you might feel that sometimes we use too much code and it can be leveraged a bit. But maybe you do not know how to do it. Most of the time the solution [...]

Python3 loops

By | 2015-11-14T17:00:41+00:00 November 14th, 2015|Python Tutorial|

Loops allow to loop through the program code and repeat blocks of code until a given condition is fulfilled or not fulfilled. The code which is repeated is called the loop’s body. Python has two types of loops: the for loop and the while loop. […]

Python3 conditional statements

By | 2015-11-14T16:59:56+00:00 November 14th, 2015|Python Tutorial|

Decision making with conditionals After this vast amount of introductory articles with the basic types of variables in Python 3 it is time to go on and introduce conditional operators which help us create an application flow based on different conditions at runtime. […]