My First Python Program

 

The Setup

Windows

Go to Download Section and download the latest source release and install it

Screenshot (2)

Linux

python 3.4 is installed on the stable release of Ubuntu 14.04 you can check it by typing in Terminal

$python --version

if not installed type this in Terminal

sudo apt-get install python3-minimal

Screenshot from 2015-06-26 18:32:58

Type the following text into a single file named myfirst_program.py. Python works best with files ending in .py

print "Wanna Play with python ?"
print "... Don't get scared,  man !"
print "Pyhton is Fuckin Fun :)"
print "lets Do it"

Run this program using terminal

$python myfirst_program.py
Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s