The max( ) and min( ) when used with tuples, can work if elements of the tuple are all of the same type.
1 Like
True
Reason — Tuples should contain same type of elements for max() and min() method to work.
Answered By
2 Likes
You can combine a numeric value and a string by using the + symbol.
The clear( ) removes all the elements of a dictionary but does not delete the empty dictionary.
A list of characters is similar to a string type.
For any index n, s[:n] + s[n:] will give you original string s.