Python is not stupid the man is it
eliben
eliben at gmail.com
Wed Aug 20 04:14:45 EDT 2008
On Aug 20, 9:22 am, "catalinf... at gmail.com" <catalinf... at gmail.com>
wrote:
> I see on this link "# Python is Stupid"http://schlake.livejournal.com/809567.html
> Code is
>
> #!/usr/bin/env python
> for flour in range( 50, 1000 + 1, 5): # Python is Stupid
> print '%.2f %.2f %.2f' % ( (flour), (flour * 0.6), (flour * 0.02) )
>
> Output is corect :D
Just a guess, but the comment may refer to the specification of range.
Specifically, he writes 1000 + 1 to include 1000 in the range, as
range is not inclusive.
Eli
More information about the Python-list
mailing list