## List Comprehensions – HackerRank Solution

Problem : 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 n. Print a list of all possible coordinates given by (i,j,k) on a 3D grid where the sum of i + j + k is not equal

## Print Function – HackerRank Solution

Problem : 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 “...” represents the consecutive values in between. Example : n = 5 Print the string 12345. Input Format : The

## Write a function – HackerRank Solution

Problem : 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 contains a leap day. In the

## Loops – HackerRank Solution

Problem : Task : The provided code stub reads and integer, n, from STDIN. For all non-negative integers i < n, print i2. Example : n = 3 The list of non-negative integers that are less than n = 3 is [0, 1, 2]. Print the square of each number on a separate line. Input

## Python Division – HackerRank Solution

Problem : The 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

## Arithmetic Operators – HackerRank Solution

Problem : 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 of the two numbers. The second line contains the difference of the two numbers (first – second). The third line