Skip to content

more python2 to python3 issues #161

@codedragon

Description

@codedragon

Session 7, map (and filter) return an iterator now, not a list:

for each in map(fun, l):
... print(each)
...
14
20
24
34
22
18

If you want the list, you can do

list(map(fun, l))
[14, 20, 24, 34, 22, 18]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions