Do min( ), max( ) always work for tuples ?
4 Likes
No, min( ), max( ) does not always work for tuples. For min( ), max( ) to work, the elements of the tuple should be of the same type.
Answered By
2 Likes
What is the difference between (30) and (30,) ?
When would sum( ) not work for tuples ?
Is the working of in operator and tuple.index( ) same ?
How are in operator and index( ) similar or different ?