Loading...
Loading...
00:00:00

First Python Program Write and Run 

Write Hello World In Python

  1. Open your IDE or source code editor
  2. Create New File
  3. Save File As filename.py(don't forget to add extension .py )
  4. Write the first program which is given Example below
    print("Hello World")

Run the python program using IDE is very simple, Click on Run Button and see the console for the output "Hello World" .

Run Python Program Using Command Prompt Or Terminal

Follow these step to run python program using Terminal

  1. Open your Terminal in python file directory
  2. Run the Command python filename.py or py filename.py
  3. OR, In your terminal put the command python filepath (if you have not open your terminal in python file directory).
  4. Congratulations! You have successfully run python program.