Skip to content

bug: mistake(?) in python always returns len 1 #1018

@kaddkaka

Description

@kaddkaka

This list generator is wrapped in 2 levels of brackets, which means the call to len() will always return 1, looks like a mistake.

bit_difference = len([[ones for ones in temp[2:] if ones == '1']])

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