Skip to content

[Question ๐Ÿค”] Use default arguments instead of short circuiting or conditionalsย #5

Closed

Description

@FacerAin

Use default arguments instead of short circuiting or conditionals

ํ•ด๋‹น ๋ฌธ์žฅ์„ ์–ด๋–ป๊ฒŒ ๋ฒˆ์—ญํ•˜๋ฉด ์ข‹์„์ง€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค.

default arguments -> ???

short circuiting or conditionals -> ???

Activity

  1. kyc3492 commented on May 26, 2023

    @kyc3492

    https://www.geeksforgeeks.org/short-circuiting-techniques-python/

    ์œ„ ๋งํฌ๋ฅผ ํ™•์ธํ–ˆ์„ ๋•Œ์—๋Š” short-circuiting ์„ ๊ฒฐ๊ตญ boolean์„ ํ™œ์šฉํ•œ ํ•จ์ˆ˜ ์ค‘๋‹จ์ด๋ผ๊ณ  ํ•ด์„ํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. (์‚ฌ์ „์ ์œผ๋กœ "๋‹จ์„ " ์ด๋ผ๋˜๋ฐ "์‡ผํŠธ๋‚ฌ๋‹ค"๊ฐ€ ์ด ๋ง์ธ๊ฐ€ ๋ด…๋‹ˆ๋‹ค.)

    ๊ฒฐ๊ตญ "ํ•จ์ˆ˜ ์ค‘๋‹จ์ด๋‚˜ ์กฐ๊ฑด๋ฌธ์„ ์“ฐ์ง€ ๋ง๊ณ  ํƒ€์ž… ํžŒํŒ…์„ ์จ๋ผ"๊ฐ€ ํ•ต์‹ฌ์ธ ๊ฒƒ ๊ฐ™์€๋ฐ ์›๋ฌธ์„ ์ตœ๋Œ€ํ•œ ์‚ด๋ฆฌ๋Š” ๊ฒƒ์ด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค.

    "ํ•จ์ˆ˜ ์ค‘๋‹จ, ์กฐ๊ฑด๋ฌธ ๋Œ€์‹  ์ดˆ๊ธฐ ๋ณ€์ˆ˜ ์„ ์–ธ์„ ํ™œ์šฉํ•˜๊ธฐ"

  2. FacerAin commented on May 29, 2023

    @FacerAin
    Author

    ํ•จ์ˆ˜ ์ค‘๋‹จ์ด๋ผ๋Š” ์˜๋ฏธ๋กœ ํ•ด์„ํ•  ์ˆ˜ ์žˆ์—ˆ๊ตฐ์š” ๐Ÿ”ฅ
    ์ฐธ๊ณ  ๋งํฌ๊นŒ์ง€ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!! ๐Ÿ˜Š๐Ÿ˜Š

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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