For this Question: Given an array, sort the array in reverse order by simply swapping its adjacent elements.First line of the input contains an integer, N, which denotes the length of the array. Next N inputs are elements of the array that is to be sorted in descending order. 

Constraints
1<=N<=1000
-10000<=Arr[i]<=100000Output sorted array in descending order where each element is space separated.Sample Input:
6
3 1 2 7 9 87

Sample Output:
87 9 7 3 2 1, I have written this Solution Code: def bubbleSort(arr):
    arr.sort(reverse = True)
    return arr
    

, In this Programming Language: Python, Now tell me if this Code is compilable or not?