List of known objects x=[' 11 ', '2', '3'], the expression of Max (x) has a value of '3', why? Why not '11'
CodePudding user response:
Because it is a string, if x=[11, 2, 3], Max (x) is the 11,
You can also use Max (map (int x))
CodePudding user response: