Skip to content

(이*호, 강의노트 4장) #69

@jonny070709

Description

@jonny070709

교수님, 강의 노트에서 여러 조건을 처리할 때 elif를 사용한다고 배웠습니다. 단순히 if문을 여러개 나열하는 것과 비교했을 때, elif를 사용하면 앞의 조건이 참일 경우 뒤의 조건들을 아예 검사하지 않고 넘어가기 때문에 프로그램의 실행 속도나 효율성 측면에서 더 유리하다고 이해해도 될까요?

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