Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 45)
45.
What is the purpose of the tuple.__contains__(element) method?
Checks if the tuple contains the specified element.
Adds the specified element to the tuple.
Removes the specified element from the tuple.
Returns the count of occurrences of the specified element.
Answer: Option
Explanation:
The __contains__ method is used to check if the tuple contains a specified element.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.