Python – First Program

Python First Program

#First program – Comment
print(“Hello World”)

Comment – #

  1. Provides the Description about the program
  2. Code will not be executed

print  Function

  1. Prints the output at the Console.
  2. printing statements can be given within the Single or Double Quote.

Steps to Create the Program:

  1. Open the Python IDLE [ Integrated Development Learning Environment]
  2.  Type the program at the Command Prompt.

Python IDLE





How to create a file File

  1. File -> New in Python IDLE
  2. Type the program in the file and Save the file with extnesion .py.
  3. Press F5 – Function key to run the program.





4. View output at the command prompt.

Next Part : Python Variable and Datatype

Win Corporate Training
View My Profile