I gave this string to my python code from which I wanted to find the maximum.
>>> a = ("4 5 29 54 4 0 -214 542 -64 1 -3 6 -6")
>>> a = a.split(" ")
>>> max(a)
>>> 6
Can someone please explain me why it is not returning 542? At last, I found the correct code:
>>> a = a.split(" ");
>>> a = [int(i) for i in a];
>>> return str(max(a))
But could someone please teel me my foolishness in the former code.