• help please

 

I would like to give some feedback about ... I'm having a hard time seeing what and where I need to correct my code. Please help!

def flatlist(array): L1 = [] for i in range(len(array)): if type(array[i]) == type([]): flatlist(array[i]) else: L1.append(array[i]) L1.sort() return L1

From: https://py.checkio.org/mission/flatten-list/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:66.0) Gecko/20100101 Firefox/66.0