Skip to content

(이*수, 강의노트 4장) #65

@Lee-Junsoo

Description

@Lee-Junsoo

연습문제 2번이나 3번을 공부하면서 여러 변수의 크기를 비교할 때 조건문과 and, or를 직접 조합해 보면서 원리를 이해할 수 있었습니다. 하지만

if c >= a + b: 대신 if max(a,b,c) >= a+b+c - max(a,b,c): 

와 같이 파이썬에는 min(), max() 같은 내장 함수도 있다는 것을 알고 있는데, 실제로 개발 할 때는 조건문으로 논리를 직접 짜는 것과 내장 함수를 쓰는 것 중 어느 쪽을 더 추천하나요?

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