• Remove all before query

Question related to mission Remove All Before

 

how is this: (my solution)

def remove_all_before(list, border):
    if border in list:
        x = list.index(border)
        return list[x:]
    else:
        print(list)

different to this: (actual answer)

def remove_all_before(items: list, border: int) -> Iterable:

    if border in items:
        return items[items.index(border):]
    else:
        return items