ABC of Python in Debian 6 Squeezy

1. Install Python:

export http_proxy=http://172.16.200.1:3128/

apt-get update

apt-get install python

2. Write Python:

nano /etc/hallow.py

print “Hello World !!”

ctrl+o

ctrl+x

3. Run Python:

python /etc/hallow.py

4. Output: Hello World !!

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