Homepage Docodehere

Latest Posts

Find Angle MBC in python - HackerRank Solution

Problem Therefore, Angle ABC = 90 . Point M is the midpoint of hypotenuse AC . You are given the lengths AB and BC . Your task is to find ...

Ankur Ranpariya 17 Jan, 2022

Collections.namedtuple() in Python - HackerRank Solution

Problem collections.namedtuple() Basically, namedtuples are easy to create, lightweight object types. They turn tuples into convenient conta...

Ankur Ranpariya 28 Dec, 2021

Exceptions in Python - HackerRank Solution

Exceptions Errors detected during execution are called exceptions. Examples: ZeroDivisionError This error is raised when the second argument...

Ankur Ranpariya 25 Dec, 2021

Calendar Module in Python - HackerRank Solution

Problem Calendar Module The calendar module allows you to output calendars and provides additional useful functions for them. class calendar...

Ankur Ranpariya 24 Dec, 2021

Introduction to Sets in Python - HackerRank Solution

Problem A set is an unordered collection of elements without duplicate entries. When printed, iterated or converted into a sequence, its ele...

Ankur Ranpariya 23 Dec, 2021

Polar Coordinates in Python - HackerRank Solution

Problem Polar coordinates are an alternative way of representing Cartesian coordinates or Complex Numbers. A complex number  Z = x + yj is c...

Ankur Ranpariya 22 Dec, 2021

itertools.permutations() in Python - HackerRank Solution

Problem itertools.permutations(iterable[, r]) This tool returns successive r length permutations of elements in an iterable. If r is not s...

Ankur Ranpariya 21 Dec, 2021