• did I not understand the conditions or is it a bug

Question related to mission Remove All Before

 

when checking these two lines give the error

assert remove_all_before([1, 1, 5, 6, 7], 2) == [1, 1, 5, 6, 7]

and

assert remove_all_before([7, 7, 7, 7, 7, 7, 7, 7, 7], 7) == [7, 7, 7, 7, 7, 7, 7, 7, 7]

code below:

from typing import Iterable

def remove_all_before(items: list, border: int) -> Iterable:
    if len(items) > 2:
        items = items[2:]
    return items

print("Example:")
print(remove_all_before([1, 2, 3, 4, 5], 3))

assert remove_all_before([1, 2, 3, 4, 5], 3) == [3, 4, 5]
assert remove_all_before([1, 1, 2, 2, 3, 3], 2) == [2, 2, 3, 3]
assert remove_all_before([1, 1, 2, 4, 2, 3, 4], 2) == [2, 4, 2, 3, 4]
assert remove_all_before([1, 1, 5, 6, 7], 2) == [1, 1, 5, 6, 7]
assert remove_all_before([], 0) == []
assert remove_all_before([7, 7, 7, 7, 7, 7, 7, 7, 7], 7) == [7, 7, 7, 7, 7, 7, 7, 7, 7]

print("The mission is done! Click 'Check Solution' to earn rewards!")