Given the participants’ score sheet for your University Sports Day, you are required to find the runner-up score. You are given scores. St...
Read More
Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts
List Comprehensions in Python – Hacker Rank Solution
Task Let’s learn about list comprehensions! You are given three integers X , Y and Z representing the dimensions of a cuboid along wit...
Read More
Print Function in Python – Hacker Rank Solution
The included code stub will read an integer,n , from STDIN. Without using any string methods, try to print the following123..n: Note that ...
Read More
Write a function in Python – Hacker Rank Solution
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...
Read More
Loops in Python – Hacker Rank Solution
Task The provided code stub reads and integer,n, from STDIN. For all non-negative integers, i < N, print i^2. Example n=3 The list of n...
Read More
Python: Division – Hacker Rank Solution
Task The provided code stub reads two integers, a and b, from STDIN. Add logic to print two lines. The first line should contain the resul...
Read More
Arithmetic Operators in Python – HackerRank Solution
Task The provided code stub reads two integers from STDIN, a and b. Add code to print three lines where: The first line contains the sum o...
Read More
Python If-Else – Hacker Rank Solution
Task : Given an integer, n, perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive rang...
Read More
Subscribe to:
Posts (Atom)