Python Hello World Example Program
- Home
- Tutorials
- Python
- Python Programs
- Syntax
- Program
Source Code:
Hello world program is the most common first program that is used to understand working of output statement. Similarly we also write print statement in python.This print function has also other optional parameters that we do not used this example.
# This is first program in python
# These lines of code will display
# Hello World on screen.
# We are using here print statement
# with no additional arguments
print("Hello World")
Output:
The output of this program using pyScript IDE will be as:
Working:
We can also write string constant in single quotes provided to the print() function. But most commonly double quotes are used. print() function will automatically move cursor to the next line after displaying Hello World.