Task:

To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a single line, and finally print the value of your variable on a second line.

Solution:

1# Read a full line of input from stdin and save it to our dynamically typed variable, input_string.
2input_string = input()
3
4# Print a string literal saying "Hello, World." to stdout.
5print('Hello, World.')
6print(f"{input_string}")
HackerRank | Day 0: Hello, World.