1Numbers = [90,78,34,50,100,99]
2higest_number = 0
3for number in Numbers:
4 if number > higest_number:
5 higest_number = number
1def Max_min(list_of_number):
2 largest_number = 0
3 smallest_number = 0
4 for num in list_of_number:
5 if num > largest_number:
6 largest_number = num
7 elif num < smallest_number:
8 smallest_number = num
9 return "Largest number ="+ str(largest_number) + "Smallest Number="+str(smallest_number)
1number_list = [1, 2, 3]
2max_value = max(number_list)
3# Return the max value of the list
4max_index = number_list.index(max_value)
5# Find the index of the max value
6print(max_index)
1#!/usr/bin/python
2
3list1, list2 = [123, 'xyz', 'zara', 'abc'], [456, 700, 200]
4print "Max value element : ", max(list1)
5print "Max value element : ", max(list2)