1. Python / Говнокод #13834

    −103

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    def removeSosedei(lst):
        lst_new = []
        for idx, item in enumerate(lst):
            if idx == len(lst) - 1:
                continue
            if lst[idx] != lst[idx + 1]:
                lst_new.append(item)
         return lst_new

    Запостил: vickers, 20 Сентября 2013

    Комментарии (16) RSS

    Добавить комментарий