HackerRank sWAP cASE problem solution in python | python problem solution

 You are given a string and your task is to swap cases. In other words, convert all lowercase letters to uppercase letters and vice versa.For Example:Www.HackerRank.com → wWW.hACKERrANK.COMPythonist 2 → pYTHONIST…

Continue ReadingHackerRank sWAP cASE problem solution in python | python problem solution

HackerRank Tuples problem solution in python | python Question Solution

 TaskGiven an integer, , and  space-separated integers as input, create a tuple, , of those  integers. Then compute and print the result of .Note: hash() is one of the functions in the __builtins__ module, so it need not be…

Continue ReadingHackerRank Tuples problem solution in python | python Question Solution

HackerRank Lists problem solution in python | python lists problem

Consider a list (list = []). You can perform the following commands:insert i e: Insert integer  at position .print: Print the list.remove e: Delete the first occurrence of integer .append e: Insert integer  at…

Continue ReadingHackerRank Lists problem solution in python | python lists problem

HackerRank Finding the percentage solution in python | hacker rank interview Question solution

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…

Continue ReadingHackerRank Finding the percentage solution in python | hacker rank interview Question solution

HackerRank Find the Runner Up Score solution in python | Python Question Solution

Given the participants' score sheet for your University Sports Day, you are required to find the runner-up score. You are given n scores. Store them in a list and find the score…

Continue ReadingHackerRank Find the Runner Up Score solution in python | Python Question Solution

HackerRank Print Function problem solution in Python | Python Question Solution

The included code stub will read an integer, , from STDIN.Without using any string methods, try to print the following:Note that "" represents the consecutive values in between.Examplen=5Print the string .Input FormatThe…

Continue ReadingHackerRank Print Function problem solution in Python | Python Question Solution

HackerRank Loops problem solution in Python | python question solution

TaskThe provided code stub reads and integer, , from STDIN. For all non-negative integers , print . Example The list of non-negative integers that are less than  is . Print the square of each number…

Continue ReadingHackerRank Loops problem solution in Python | python question solution

HackerRank Nested Lists problem solution in Python | Hacker Rank Python Question Solution

Given the names and grades for each student in a class of N students, store them in a nested list and print the name(s) of any student(s) having the second…

Continue ReadingHackerRank Nested Lists problem solution in Python | Hacker Rank Python Question Solution

HackerRank What’s your name solution in Python | python problem solution

You are given the firstname and lastname of a person on two different lines. Your task is to read them and print the following:Hello firstname lastname! You just delved into python.Function DescriptionComplete…

Continue ReadingHackerRank What’s your name solution in Python | python problem solution