Python Hello World Example Program

  1. Home
  2. Tutorials
  3. Python
  4. Python Programs
  5. Syntax
  6. 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:

Python first program to print Hello World

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.

 
 
Comments
Login to TRACK of Comments.