Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 49)
49.
What is the result of the expression len(('apple',))?
5
1
('apple',)
Raises a TypeError
Answer: Option
Explanation:
The len() function returns the number of elements in the tuple, which is 1 in this case.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.