Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page 43 (Chapter 2 , this seems serious technical error on methods of tuples) #10

Open
georgiosdoumas opened this issue Apr 14, 2019 · 0 comments

Comments

@georgiosdoumas
Copy link

georgiosdoumas commented Apr 14, 2019

At the end of the page 43 this is mentioned :
(unless you need methods such as index and count, which tuples don’t have)

But I created a tuple and I could call those 2 methods ( i have Python 3.6):
>>> mynumtuple = (10,20,30)
>>> len(mynumtuple)
3
>>> mynumtuple.index(30)
2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant