Write a program to store random numbers into an array of n integers and then find out the smallest and largest number stored in it. n is the user input. code example
Example: Write a function that returns the largest element in a list
def return_largest_element(array):
largest = 0
for x in range(0, len(array)):
if(array[x] > largest):
largest = array[x]
return largest