Python program to print the sorting numbers in descending order

Python program to print the sorting numbers in descending order. For new programmers, arranging the components in a specific order is often a challenge.

array = [ 4,67,87,3,54,6]
print ("Entered array " + str(array))
for i in range(0, len(array)) : 
array[i] = int(array[i]) 
array.sort(reverse = True) 
print ("The reverse array " + str(array))

Output:

Entered array [4, 67, 87, 3, 54, 6]
The reverse array [87, 67, 54, 6, 4, 3]