a = [['a', 20], ['b', 36], ['c', 1], ['d', 8], ['e', 55]]
How can I print out the minimum value or maximum value by using Python built-in functions like min()
or max()
?
The result would look like ['e' , 55]
or 55
.
for x in a:
if x[1].isdigit():
q = x[1]
print(q)
print(max(q))