Light Mode
Dark Mode
Help!
def checkio(numbers_array: tuple) -> list:
x=[]
for n in numbers_array:
    x.append(n)
    if len(x) == 1:
        continue
    if len(x) >= 2:
        while abs(n)<abs(x[x.index(n)-1]):
            x.insert(x.index(n)-1,n)
            del x[x.index(n)+2]
return x

plese tell me where is wrong!

Created: March 24, 2019, 3:17 p.m.
Updated: March 25, 2019, 12:55 p.m.
0
5
User avatar
midoritouhou