You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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])) |