Share
Largest in list
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Write a program to find the largest element from the following list:
lis=[11,30,11,99,99]
Answers ( 2 )
Here’s the code:
max= -1000
for i in range(len(lis)):
if(lis[i]>max):
max=lis[i]
else:
pass
print(max)
lis=[11,30,11,99,99]
max(lis)