Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any/all error #13

Open
johnbridstrup opened this issue Nov 28, 2018 · 0 comments
Open

Any/all error #13

johnbridstrup opened this issue Nov 28, 2018 · 0 comments

Comments

@johnbridstrup
Copy link

Not sure if your still maintaining this, but there’s an error in the example in the “any and all” section from day 2:

x = [ True, False ]
print any(x)
True
print all(x)
False
>>> y = [ True, True ]
print any(x)
True
print all(x)
False

z = [ False, False ]
print any(z)
False
print all(z)
False

You defined y but passed x to the function. Clearly you meant for both any and all to return True here.

Best!
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant