1array = [1, 2, 3, 4, 5, 6, 7, 8, 9, ]
2result = []
3num = int(input('Enter N: '))
4
5for x in range(0, num):
6 largeNum = 0
7 for y in range(len(array)):
8 if array[y] > largeNum:
9 largeNum = array[y]
10 array.remove(largeNum)
11 result.append(largeNum)
12
13print(result)