Basic Python Programs
, Python Program to Print Hello world!
Printing a message on screen is very simple in Python programming. Unlike java where you
to write a couple of lines of code to do this task, In Python you can print a message on scree
with a single line of code (print statement).
# This prints Hello World on the output screen
print('Hello World')
Output:
Hello World
In this program, we have used the built-in print() function to print the string Hello, world! on
screen.
, Python Program to Print Hello world!
Printing a message on screen is very simple in Python programming. Unlike java where you
to write a couple of lines of code to do this task, In Python you can print a message on scree
with a single line of code (print statement).
# This prints Hello World on the output screen
print('Hello World')
Output:
Hello World
In this program, we have used the built-in print() function to print the string Hello, world! on
screen.