Skip to content

gowithflow의 number_of_case 질문 드립니다. #27

@kim-irubi

Description

@kim-irubi
for i in range(1, len(result)):
    if result[i-1] == result[i]:
        result.remove(result[i])
    else:
        pass

해당 반복문에서 list index out if range 오류가 뜨는데 범위가 1부터 len(result)까지면 오류 뜰 부분이 없는 것 같은데 어디서 오류가 뜬 건지 모르겠습니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions