I am new to python. I have a few questions coming from an armature!

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Tue Aug 16 03:35:28 EDT 2016


On Tuesday, August 16, 2016 at 7:19:01 PM UTC+12, Ian wrote:
> On Aug 16, 2016 12:36 AM, "Lawrence D’Oliveiro" wrote:
>
> The difference being that the “map” function takes an iterable and returns
> an iterator.
> 
> In Python 3, yes. However, assigning the result to the name
> "squared_plus_one_list" implies that the author was probably considering
> Python 2 code, in which map returns a list, so the comprehension is
> equivalent.

Why was the change made?

Because it was important.



More information about the Python-list mailing list