-
-
Save stephengruppetta/5b0d2b0f21ab4d07471f5611da75ee2a 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
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