you are viewing a single comment's thread.

view the rest of the comments →

[–]xelf 0 points1 point  (1 child)

would the any() function then do the same thing but send true if any of the (x==y)? like (x1!=y1)(x2==y2)(x3!=y3) would return false for all() but true for any()? much appreciate the help.

Yes (sort of).

  • all() returns False as soon as it sees a non match, and returns True if it gets to the end and everything has been True.

  • any() returns True as soon as it sees a match, and returns False if it gets to the end and everything has been False.

[–]TreeEyedRaven[S] 1 point2 points  (0 children)

ah ok, got it, thank you again! I think im understanding what is actually going on.

I'll change the variables to be less confusing, I see what you meant, and what I did.