Created
December 2, 2020 14:19
-
-
Save Nashpratim/b879118bc36a4b054d9645041197f4cb to your computer and use it in GitHub Desktop.
Created on Skills Network Labs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing.
It would be nice to put these closer together in terms of layout. There are some other methods and pictures between then which makes it hard to connect that these two are equivalent.
Also, fun fact - the first approach only works if
b
is a set. But the second approach takes an iterable, sob
could be a list, tuple or set.