Problem: Finding the Percentage The provided code stub will read in a dictionary containing key/value pairs of name:[marks] for a list of students. Print the average of the marks array for the student name provided, showing 2 places after the de... Read more

Given the participants’ score sheet for your University Sports Day, you are required to find the runner-up score. You are n given scores. Store them in a list and find the score of the runner-up. Input Format The first line cont... Read more

First Factorial Factorial of a number in Python Have the function FirstFactorial(num) take the num parameter being passed and return the factorial of it. For example: if num = 4, then your program should return... Read more

## Check string is Palindrome or not- Python

Palindrome in python Problem is to check whether a given string is palindrome or not. If the given string is palindrome Return True and if not return False. Constraints: Given string can be of multiple word... Read more

## List Comprehensions- Python HackerRank Solution

List Comprehensions Let’s learn about list comprehensions! You are given three integers x,y and z representing the dimensions of a cuboid along with an integer. Print a list of all possible coordinates given by(x,y,z) on a 3D grid where th... Read more

## Print Function Python – HackerRank Solution

Print Function Python print(): This function is used standard output The included code stub will read an integer, n, from STDIN. Without using any string methods, try to print the following: 123….n Note that “…” repr... Read more

## Leap Year -HackerRank solution

Leap Year An extra day is added to the calendar almost every four years as February 29, and the day is called a leap day. It corrects the calendar for the fact that our planet takes approximately 365.25 days to orbit the sun. A leap year co... Read more

## Python Division – HackerRank Solution

Python Division TaskThe provided code stub reads two integers, a and,b from STDIN. Add logic to print two lines. The first line should contain the result of integer division, a//b. The second line should contain the result of float division, a/b... Read more

## Python If-Else – HackerRank Solution

Python If-Else TaskGiven an integer, n, perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive range of 2 to 5, print Not Weird If n is even an... Read more