[Tutor] sequence of elements problem
Dave Angel
davea at davea.name
Fri Nov 8 19:33:17 CET 2013
On Fri, 8 Nov 2013 04:54:53 -0800 (PST), donsuni <donsuni at gmail.com>
wrote:
> Hi, I have a problem in python which is kind of tricky.
Your wording is kind of tricky.
> and so on without using any inbuilt functions.
But you use len() and range().
Has your class taught about generators or list comprehensions?
Currently your function returns an int, not a list. Changing it from
a function to a generator might be easiest.
--
DaveA
More information about the Tutor
mailing list