Important Notice:

Find Maximum Element in a List

Find Maximum Element in a List

17 views 1 min read
Program 5: Find Maximum Element in a List
 
हिंदी में: max() function का उपयोग List में सबसे बड़ी value ज्ञात करने के लिए किया जाता है।
English: The max() function returns the largest element in a list.
 
Code:
 
numbers = [12, 45, 23, 67, 34]
maximum = max(numbers)
print("Maximum Element:", maximum)


Output:
Maximum Element: 67

Related Notes