Answers for "how to find the largest value in a list python"

1

python find largest variable

x = 1
y = 2
z = 3
var = {x:"x",y:"y",z:"z"}
max(var)
var.get(max(var))
var.get(min(var))
----OUTPUT----
3
z
x
Posted by: Guest on February-08-2021
0

max of a list in python

#!/usr/bin/python

list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
print "Max value element : ", max(list1)
print "Max value element : ", max(list2)
Posted by: Guest on August-29-2020
-1

find the largest size in a list - python

longest_string = len(max(a_list, key=len))
Posted by: Guest on December-01-2020

Code answers related to "how to find the largest value in a list python"

Python Answers by Framework

Browse Popular Code Answers by Language