Hackerrank: 30 Days of Code of python

HackerRank 30 Days of code is a challenge from HackerRank where you need to solve one problem daily. The problem will be unblocked every 24 hours.

Day 0: Hello, World.

code :

input_string=input()

print('Hello, World.')

#print('Welcome to 30 Days of Code!')

print(input_string)

output :

0 day.png

Day 1: Data Types

code :

i = 4 d = 4.0 s = 'HackerRank '

#Declare second integer, double, and String variables. a=12; b=4;

#Read and save an integer, double, and String to your variables. a=int(input()); b=float(input()); string=input();

#Print the sum of both integer variables on a new line. print(a+i)

#Print the sum of the double variables on a new line. print(b+d)

#Concatenate and print the String variables on a new line print(s+string)

#The 's' variable above should be printed first.

output :