WhiteSandSep 24, 20192 minInstalling Spark on Windows (pyspark)Prerequisite: Follow these steps to install Apache Spark on windows machine. Now-a-days Python is used by many applications. So it is...
WhiteSandJan 3, 20191 minHow can I get the source code of the Python Packages?You can find source code on Github. Under cpython you will be able to find all the modules and python objects (written in C). You can...
WhiteSandJan 3, 20191 minWhat does // mean in python?It’s floor division. Python docs has very nice documentation on this. Python3: Mathematical division that rounds down to nearest integer....
WhiteSandJan 3, 20191 minWhat programming language is famous amongst Russians?According to Google Trends it seems like Javascript. However, I didn’t except Python as least popular language amongst Russians. First of...
WhiteSandDec 25, 20182 minWhat is the most efficient way to find prime factors of a number (python)?One of the best method is to use Sieve of Eratosthenes Create a list of prime flags with their indices representing corresponding...
WhiteSandDec 24, 20185 minWhat is the difference between Python 2 and Python 3?Below are the key differences which I have observed and encountered frequently while working on Python 2 and Python 3. Integer division...
PriSinDec 23, 20181 minMutable vs Immutable Objects in Python exampleEverything in Python is an object and all objects in Python can be either mutable or immutable. Immutable objects: An object with a fixed...
WhiteSandDec 23, 20181 minWhat is "is" in Python?The operators is and is not test for object identity. x is y is true if and only if x and y are the same object (object location in...
WhiteSandDec 16, 20184 minInteresting and Unknown facts about Python programmingPython has gained more popularity in past 1 year! Actually, it’s the most popular programming language now. JAVA is the second most...