Calculate the square root of a number

Let's say you have given a problem to solve the square root of a number (obviously non-negative) and you have to return the integer (truncate the decimal digits and return only the integer), example 1 input: 9 output: 3 example 2 input: 50 output: 7 Explanation: Since the square root of 50 is 7.071 we … Continue reading Calculate the square root of a number

ZIP in Python

zip() is one of the build-in function in python. The main purpose of the zip is to map a similar index of multiple containers so that they can be used just using a single entity. Syntax: zip(iter1 [, iter2 [...]]) Parameters: iterables or containers(like list, string) Returns: Returns a zip object containing tuple where i-th … Continue reading ZIP in Python