Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created July 6, 2023 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephengruppetta/5b0d2b0f21ab4d07471f5611da75ee2a to your computer and use it in GitHub Desktop.
Save stephengruppetta/5b0d2b0f21ab4d07471f5611da75ee2a to your computer and use it in GitHub Desktop.
team_points = zip(
["Jim", "Chris", "Jess", "Zahra"],
[10, 12, 5, 13],
)
print(team_points)
# <zip object at 0x7f8e03a54540>
print(team_points.__iter__)
# <method-wrapper '__iter__' of zip object at 0x7f8e03c3ae40>
print(team_points.__contains__)
# ...
# AttributeError: 'zip' object has no attribute '__contains__'
print(team_points.__len__)
# ...
# AttributeError: 'zip' object has no attribute '__len__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment