how to get the maximum value from a list in python code example Example: python largest value in list >>> list = [1, 3, 2, 0] >>> max(list) 3