Duh v D'oh

Philippe Bruhat (BooK) philippe.bruhat at free.fr
Thu Nov 13 12:59:52 GMT 2008


On Thu, Nov 13, 2008 at 12:34:54PM +0000, Paul Makepeace wrote:
> 
> stix:~$ python
> Python 2.4.5 (#2, Aug  1 2008, 12:02:10)
> [GCC 4.3.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> a = {'foo': 'bar'}
> >>> a['foo']
> 'bar'
> >>> for k in a:
> ...   print k
> ...
> foo
> >>> for k in a: print k
> ...
> foo

>>> exit
Use exit() or Ctrl-D (i.e. EOF) to exit
>>> 

OK, it was easy, but it illustrates the differences in mentality so
well. ;-)

-- 
 Philippe Bruhat (BooK)

 Putting beauty before brains is the surest way to wind up with neither.
                                    (Moral from Groo The Wanderer #24 (Epic))


More information about the london.pm mailing list