Say Hello, World! With Python - Hacker Rank Solution
Problem
Objective
This is a simple challenge to help you practice creating variables and printing to stdout. You may also want to complete Solve Me First in Python before attempting this challenge.
Python is an interpreted, dynamic programming language that allows us to execute statements individually and see their results. In other words, you don't have to write and compile an entire program to see the results of your code like you would in some other languages like C++ and Java.
Note: You may also want to check out this Python Style Guide for guidance on variable naming.
print("Hello, World!")
You can just as easily store a string as a variable and then print it to stdout:
my_string = "Hello, World!" print(my_string)
The above code will print Hello, World! on your screen. Try it yourself in the editor below!
Input Format :
You do not need to read any input in this challenge.Output Format :
Print Hello, World! to stdoutSample Output :
Hello, World!
Solution :
1 2 3 4 5 | #Say Hello, World! With Python - Hacker Rank Solution if __name__ == '__main__': #Say Hello, World! With Python - Hacker Rank Solution START print "Hello, World!" #Say Hello, World! With Python - Hacker Rank Solution END |
Disclaimer :-
the above hole problem statement is given by hackerrank.com but the solution is generated by the codeworld19 authority if any of the query regarding this post or website fill the following contact form thank you.