Program to print Hello World in Python
In this python programs guide, we will learn to write:
basic hello world program in python
Hello world in python
Lets write a program to print hello world in python. The code to print hello world in python is as follows:
The output is :
PS C:\Users\DEVJEET\Desktop\tutorialsInHand> python code.py
Please check our video tutorial on hello world in python program:
Few important points on hello world in python
In Python, unlike C, C++ we don't require any header file for basic programming. So directly we can code.
In Python, primarily it is not mandetory to have a main() method, as we have in C, C++ and Java. But still you can create a main method by specifying " if __name__ == "__main__": ".
To run a Python program in a text editor like VS Code or Sublime Text, open the terminal and write python followed by the name of the program and hit enter. Your code will execute.
Would you like to see your article here on tutorialsinhand.
program by tutorialsinhand.com
About the Author
Full Stack Web Developer & Data Science Enthusiast
Page Views :
Published Date :