how do you print the greatest value code example
Example 1: python largest value in list
>>> list = [1, 3, 2, 0]
>>> max(list)
3
Example 2: how to write program in python to get the largest nuber
def max_num_in_list( list ):
max = list[ 0 ]
for a in list:
if a > max:
max = a
return max
print(max_num_in_list([1, 2, -8, 0]))