2004-10-07

The Basics

Learning to code can be surprisingly entertaining:
#! /usr/bin/python

##################
resp = raw_input("What's your name? ")
print "Hi, %s, nice to meet you." % resp

G5:~ eric$ python yadda.py

What's your name?
Eric
Hi Eric, nice to meet you.

G5:~ eric$
<smile>

1 comment:

  1. And in Python no less! One of my coworkers (one of the smartest people I know, incidentally) recently decided that he hates all languages except Python.

    ReplyDelete