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)
1# Python program to find largest
2# number in a list
3
4# list of numbers
5list1 = [10, 20, 4, 45, 99]
6
7
8# printing the maximum element
9print("Largest element is:", max(list1))
10