Validating phone numbers Hackerrank solution Let’s dive into the interesting topic of regular expressions! You are given some input, and you are required to check whether they are vali... Read more
Regex Substitution Hackerrank Solution The re.sub() tool (sub stands for substitution) evaluates a pattern and, for each valid match, it calls a method (or... Read more
Given a list of rational numbers,find their product. ConceptThe reduce() function applies a function of two arguments cumulatively on a list of objects in succession from left to r... Read more
Validating Email Addresses With a Filter Hackerrank Solution You are given an integer N followed by N email addresses. Your task is to print a list containing only valid email addresses in l... Read more
Any or All HackerRank Solution Python any() This expression returns True if any element of the iterable is true.If the iterable is empty, it will return False. Code... Read more
Athlete Sort Hackerrank Solution Python You are given a spreadsheet that contains a list of N athletes and their details (such as age, height, weight and so on). You are required to sort the... Read more
Input() Hackerrank solution python input() In Python 2, the expression input() is equivalent to eval(raw _input(prompt)). Code Task You are given a polynomial P of a... Read more
Check Subset – Python HackerRank Solution You are given two sets,A and B.Your job is to find whether set A is a subset of set B. If set A is subset of set B, print True.If set A is not... Read more
The Captain’s Room – Hackerrank Solution Python Mr. Anant Asankhya is the manager at the INFINITE hotel. The hotel has an infinite amount of rooms. One fine day, a fini... 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