15
What is the output of the following code?
a = [3, 8, 1, 9, 4]
best = a[0]
for x in a:
if x > best:
best = x
print(best)Easy
What is the output of the following code?
a = [3, 8, 1, 9, 4]
best = a[0]
for x in a:
if x > best:
best = x
print(best)Log in to join the discussion.