Why does Python’s tuple not have any method associated with it? e.g. tuple.append(), tuple.remove(), etc.?
If the contents of tuple are accessed as we access list items, then why does tuple not have list-related methods?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
tuples are immutable, you cannot change their content.EDIT – as commented on the question, and I’m not sure came clear from my answer – there are methods for tuples, but not methods that modify them.