write a programme to accept a list and transform the list into A=[5,10,15,3,77], A=[77,3,15,10,5] in python code example
Example: Sample Input: ['a', 'b', ['c', ['d', 'e', ['f', 'g', 'h', 'i', 'j'], 'k'], 'l'], 'm', 'n'] Sample Output: [['c', ['d', 'e', ['f', 'g', 'h', 'i', 'j'], 'k'], 'l']]
print['a', 'b', ['c', ['d', 'e', ['f', 'g', 'h', 'i', 'j'], 'k'], 'l'], 'm', 'n']