Kalebu Jordan

Become a Pro Python Developer

This example is about how to display message on the window screen. In order to print or display message on the window we need to use print ( ) function.

Below is a simple Python Program that display “I have wrote my first program” on screen.

hello.py

#___________Printing message to screen ____________

print("I have wrote my first program in Python")

Running the program

$ python hello.py
I have wrote my first program in Python

When you run the above program it will print out the message we just wrote

Note :
The message you want to display must be surrounded with single quote ‘ ‘ or double quotes ” ”

Leave a Reply

error

Enjoy this blog? Please spread the word :)