You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question ๐ค] Use default arguments instead of short circuiting or conditionalsย #5
Activity
kyc3492 commentedon May 26, 2023
https://www.geeksforgeeks.org/short-circuiting-techniques-python/
์ ๋งํฌ๋ฅผ ํ์ธํ์ ๋์๋
short-circuiting์ ๊ฒฐ๊ตญboolean์ ํ์ฉํ ํจ์ ์ค๋จ์ด๋ผ๊ณ ํด์ํ ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค. (์ฌ์ ์ ์ผ๋ก "๋จ์ " ์ด๋ผ๋๋ฐ "์ผํธ๋ฌ๋ค"๊ฐ ์ด ๋ง์ธ๊ฐ ๋ด ๋๋ค.)๊ฒฐ๊ตญ "ํจ์ ์ค๋จ์ด๋ ์กฐ๊ฑด๋ฌธ์ ์ฐ์ง ๋ง๊ณ ํ์ ํํ ์ ์จ๋ผ"๊ฐ ํต์ฌ์ธ ๊ฒ ๊ฐ์๋ฐ ์๋ฌธ์ ์ต๋ํ ์ด๋ฆฌ๋ ๊ฒ์ด ์ข์ ๊ฒ ๊ฐ์ ๋ค์๊ณผ ๊ฐ์ด ์ ์ํฉ๋๋ค.
"ํจ์ ์ค๋จ, ์กฐ๊ฑด๋ฌธ ๋์ ์ด๊ธฐ ๋ณ์ ์ ์ธ์ ํ์ฉํ๊ธฐ"
FacerAin commentedon May 29, 2023
ํจ์ ์ค๋จ์ด๋ผ๋ ์๋ฏธ๋ก ํด์ํ ์ ์์๊ตฐ์ ๐ฅ
์ฐธ๊ณ ๋งํฌ๊น์ง ๊ฐ์ฌํฉ๋๋ค!! ๐๐