Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created July 6, 2023 11:40
Show Gist options
  • Save stephengruppetta/e93417aa867d56a14b84697e71fe0235 to your computer and use it in GitHub Desktop.
Save stephengruppetta/e93417aa867d56a14b84697e71fe0235 to your computer and use it in GitHub Desktop.
import collections
team_members = ["Jim", "Chris", "Jess", "Zahra"]
print(isinstance(team_members, collections.abc.Collection))
# True
team_points = zip(
["Jim", "Chris", "Jess", "Zahra"],
[10, 12, 5, 13],
)
print(isinstance(team_points, collections.abc.Collection))
# False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment