Speed up Python (using Cython)

Introduction CPython is the most common and widely used Python implementation. Generally when developers refer to Python, they are talking about C implementation of Python or CPython. There are other implementations of Python, here’s a list straight out of Python.org. 1. IronPython (Python running on .NET)2. Jython (Python running on the Java Virtual Machine)3. PyPy (A […]

Read More

Increase your Instagram followers with a simple Python bot

Growing an audience is an expensive and painful task. And if you’d like to build an audience that’s relevant to you, and shares common interests, that’s even more difficult. I always saw Instagram has a great way to promote my photos, but I never had more than 380 followers… Every once in a while, I decide to […]

Read More

pip in python – installing, uninstalling, upgrading and listing packages

pip is the package installer for python. Pip is one of the most famous and widely used package management systems to install and manage software packages written in Python and found in the Python Package Index (PyPI). Most distributions of Python come with pip preinstalled. Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include […]

Read More

Map functions in python [ map() ]

Map function is a good alternative for the “for loops” in python. Sometimes we do not want our code to look clumsy because of all the for loops we have used. In this case the “map()” in python comes to the rescue. What are map functions? map() function returns a map object(which is an iterator) […]

Read More

Python code snippets – swapping values, frequent elements, anagrams etc.

Swapping values Create a single string from all the elements in list Find The Most Frequent Value In A List. Checking if two words are anagrams Reverse a String Reverse a list Transpose 2d array Chained Comparison Chained function call Copying List Dictionary Get Sort Dictionary by Value For Else Convert list to comma separated […]

Read More