top | item 3583609

(no title)

mykhamill | 14 years ago

Any particular reason you didn't go for the list comprehension?

  def pyChallenge():
    print sum([el for el in range(1001) if not((el%5==0) or el%7==0))])
  # this call is needed to test your function
  pyChallenge()

discuss

order

No comments yet.