Python Code to Reduce and Compress Image Files

As a large number of Internet users use cell phones to access online contents, Google started penalizing the websites that are slow and take several seconds to download all the data. If your web pages have only text data, you may not have to worry. …

Add Python 3 as Interpreter in PyDev Eclipse Luna

When you install PyDev on¬†Eclipse Luna, the default interpreter for python is selected as Python2 on Ubunut 14.04 machine because Python2 is the default package in Ubuntu. Lots of new features have been added to Python 3 which are not supported in Python2. So, you …

Extended Euclid algorithm for GCD in Python

Euclid’s recursive program based algorithm to compute GCD (Greatest Common Divisor) is very¬†straightforward. If we want to compute gcd(a,b) and b=0, then return a, otherwise, recursively call the function using a=b and b=a mod b.