"Program to find a maximum number from a list"
print ("Program to find the Maximum number from a list")
L_size=int(input("Enter the List Size : "))
Mylist=[]
i=1
for i in range(0,L_size):
print ("Enter the ", i ," item ")
L_item=int(input("The Value : "))
Mylist.append(L_item)
maxx=-1
for j in Mylist:
if j > maxx:
maxx=j
print ("The Maximum of the List is ", maxx)
print ("Program to find the Maximum number from a list")
L_size=int(input("Enter the List Size : "))
Mylist=[]
i=1
for i in range(0,L_size):
print ("Enter the ", i ," item ")
L_item=int(input("The Value : "))
Mylist.append(L_item)
maxx=-1
for j in Mylist:
if j > maxx:
maxx=j
print ("The Maximum of the List is ", maxx)
No comments:
Post a Comment