Python complaints

Mikael Olofsson mikael at isy.liu.se
Wed Nov 24 16:28:43 CET 1999


On 24-Nov-99 Gordon McMillan wrote:
 > >>> def p(score):
 >  ...  print "You scored %d point%s" % (score, score==1 and ' ' 
 >  or 's')
 >  ...
 > >>> p(1)
 >  You scored 1 point
 > >>> p(3)
 >  You scored 3 points

Cool, but I would never had understood that code without testing it. 
However, cool is not necessarily the same as good.

/Mikael

-----------------------------------------------------------------------
E-Mail:  Mikael Olofsson <mikael at isy.liu.se>
WWW:     http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone:   +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date:    24-Nov-99
Time:    16:26:03

This message was sent by XF-Mail.
-----------------------------------------------------------------------




More information about the Python-list mailing list