Skip to content

Last example in Set Comprehensions has incorrect return value #58

@jabocg

Description

@jabocg

The last example in comprehensions is

>>> {2**x for x in range(10)}
{32, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512}

where the return value should actually be

{1, 2, 4, 8, 16, 32, 64, 128, 256, 512}

Not sure where the extra 32 came from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions