Factorials

Steven Taschuk staschuk at telusplanet.net
Sun Jun 8 16:58:07 EDT 2003


Quoth Tim Rowe:
  [...]
> - Anton's solution barfs on  R = [x*y for x,y in zip(R[::2],R[1::2])],
> complaining that the sequence index must be an integer.

Try it on Python 2.3, where extended slice notation actually works
for lists.

-- 
Steven Taschuk                  staschuk at telusplanet.net
"Telekinesis would be worth patenting."  -- James Gleick





More information about the Python-list mailing list