On Wednesday, 28 January 2015 at 13:14:16 UTC, bearophile wrote:
The word "obvious" is important, because usually there are multiple ways to do something, but only one of them should be obvious in Python :-)

Yes... but which one is obvious:

[0.1*x for x in range(10)]

map(operator.mul,range(10),[0.1]*10)

numpy.arange(0.,0.95,0.1)

numpy.linspace(0,0.9,num=10)

list(itertools.islice(itertools.count(0.0, 0.1), 10))

...

Reply via email to