I have a question about Python:
tuple1 = (123, 'xyz', 'zara', 'abc', 9681)
print "Max value element : ", max(tuple1)
Why the output is 'zara' not 9681?
I have a question about Python:
tuple1 = (123, 'xyz', 'zara', 'abc', 9681)
print "Max value element : ", max(tuple1)
Why the output is 'zara' not 9681?
Because it is order by ascii table. 'z' is 122 and '1' is 49. For this reason, it will return 'zara'