Hello World – Python

I've been hearing a lot about "Python", so I decided to pick up a book "Python Programming for Absolute Beginner" by Michael Dawson. Today, I'm going to share with you how to write classic "Hello World" program in Python.

Fire your favorite text editor program, in my case I use vim.

kenno$ vim helloworld.py

Then type the following code:

# Hello World
print "Hello World!"

Save it, and execute it with the following command:

kenno$ python helloworld.py
Hello World!

It is easy, isn't it?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s