[Tutor] repply

prasad rao prasadaraon50 at gmail.com
Sun Jan 4 14:18:47 CET 2009


hi   I got it right.

>>> z=[]
>>> for x in range(1000):
if divmod(x,3)[1]==0:z.append(x)
if divmod(x,5)[1]==0:z.append(x)

>>> sum(set(z))
233168

I am  sorry if  this is outside the perimeter of this list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090104/5bfd55ff/attachment.htm>


More information about the Tutor mailing list