-
-
Save stephengruppetta/dcc5364faf321b86605294883c51191e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
team_members = ["Jim", "Chris", "Jess", "Zahra"] | |
# A list is a sequence | |
print(isinstance(team_members, collections.abc.Sequence)) | |
# True | |
# It's not a mapping | |
print(isinstance(team_members, collections.abc.Mapping)) | |
# False | |
# And it's not a set, either | |
print(isinstance(team_members, collections.abc.Set)) | |
# False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment