View Single Post
Old Jul 18th, 2007, 8:52 AM   #13
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Talking

Quote:
Originally Posted by ZenMasterJG View Post
i like:
print "Value\tSquare"
for pair in [ (x, x*x for x in xrange(1, 6) ]:
     print "%d\t%d"%(pair[0], [pair[1])
I figured you would that kind of complex person!
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote