15
Question Question 15
Which of the below given functions cannot be used with nested tuples ?
- index( )
- count( )
- max( )
- sum( )
sum( )
Reason — For sum( ) function to work, the tuple must have numeric elements. Since nested tuples will have at least one element as tuple so the sum( ) function will raise a TypeError and will not work.