Friday 23 March 2018

First Python Program

My First Python Program

Start your Python Shell.

You will get command prompt like (>>>). Write following simple command to print your first message using Python Programming.

>>> print("Hello World")
Hello World

Congratulations!!! Your first python program is done....

Here, >>> print("Hello World") is the python code we need to write to generate the output Hello World.

* * * * *
#Sample Python Program
print("Hello Students..")
print("Welcome to Python Practicals.......")

Output:
Hello Students..
Welcome to Python Practicals.......


No comments:

Post a Comment