hello world program in python progrmming language

In this example, we simply display "Hello World" . Traditionally, Hello World programs are used to illustrate how the process of coding works, as well as to ensure that a language or system is operating correctly. They are usually the first programs that new coders learn, because even those with little or no experience can execute Hello World both easily and correctly.

Python Example to Print "Hello World!"

Python is a very simple language, and has a very straightforward syntax. It encourages programmers to program without boilerplate (prepared) code. The simplest directive in Python is the "print" directive - it simply prints out a line (and also includes a newline, unlike in C).

There are two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This example uses Python 3, because it more semantically correct and supports newer features.

Example :

    
        print("Hello World!")
    

Output :

    
Hello World!
    

Share your thoughts

Ask anything about this examples