Set .difference() Operation – Hackerrank Solution Python .difference() The tool .difference() returns a set with all the elements from the set that are not in an iterable.Som... Read more

Exceptions in python – Hackerank Solution Exceptions Errors detected during execution are called exceptions. Examples: ZeroDivisionErrorThis error is raised when the second argume... Read more

Maximize It! Python Hackerrank Solution You are given a function f(X)=X^2 You are also given K lists. The ith list consists of Ni elements. You have to pick one element from each list so tha... Read more

Power – Mod Power Hackerank Solution So far, we have only heard of Python’s powers. Now, we will witness them! Powers or exponents in Python can be calculated using the built-in... Read more

Mod Divmod Python Hackerank Solution One of the built-in functions of Python is divmod, which takes two arguments a and b and returns a tuple containing the quotient of a/b first and then th... Read more

Set .intersection() Operation hackerank solution .intersection() The .intersection() operator returns the intersection of a set and the set of elements in an iterable.Sometimes, th... Read more

Iterables and Iterators Hackerrank solution python The itertools module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Tog... Read more

Triangle Quest 2 Hackerrank Solution Python You are given a positive integer N.Your task is to print a palindromic triangle of size N . For example, a palindromic triangle of size... Read more

Piling Up! – Python Hackerrank Solution There is a horizontal row of n cubes. The length of each cube is given. You need to create a new vertical pile of cubes. The new pile should fol... Read more

Set .union() Operation – Python HackerRank Solution .union() The .union() operator returns the union of a set and the set of elements in an iterable.Sometimes, the |... Read more