How to Find Maximum of a Number in a List using Python? | Tamil | Quick Through #PythonProgramming

preview_player
Показать описание
Hello Guys!

In this Video,We are Going to find
the maximum of a number in a lists
using python!

*****************************************
ALGORITHM:
1. Start the program.
2. First read the upper limite from the list of element.
3. And read the elements from the list of element using loop until to its upper Iimit .
4. And set the first element as maximum as list i[0] and then set I is equal to zero.
5. If the list l[i] Is greater then the maximum is number then act as a list be maximum is equal
to list 1[i] and its incremented by I as.
6. Finally print the maximum number as max no In the list.
7. Stop the program.
**********************************************
PROGRAM:
list1=[]
print("enter the upper limit")
n=int(input())
print("enter the numbers")
for i in range (0,n):
a=int(input())
maxno=list1[0]
for i in range (len(list1)):
if list1[i](greater than)maxno:
maxno=list1[i]
print("maximum number is :", maxno)

***************************************
Keywords: How to find
the maximum of a number in a lists
using python? ,the maximum of a number in a list,
Quick through tamil , quick through tamil
anna university python programming , pspb lab

*******************************************

Watch the video fully guys and make sure to
subscribe this channel:)
Рекомендации по теме
Комментарии
Автор

a=[5, 7, 9, 2, 437, 32, 157, 903, 34]
for i in a:
pass
print(max(a)) 😂😂

TecRox-
Автор

excuse me, sir, I had used append function in my program to find the maximum number by getting "user input", positively it was working but i wanna know is it reliable in all honesty?

sanciashalom