Guidelines

+ μ—°μ‚°μžλ‘œ λ¬Έμžμ—΄ μ—°κ²°ν•˜κΈ°

λ¬Έμžμ—΄μ„ μ—°κ²°ν•  λ•Œ μ‚¬μš©λ˜λŠ” κ°€μž₯ κ°„λ‹¨ν•œ 방법은 '+' μ—°μ‚°μžλ₯Ό μ‚¬μš©ν•˜λŠ” κ²ƒμž…λ‹ˆλ‹€.

'+' μ—°μ‚°μžλŠ” λ¬Έμžμ—΄ κ°„μ—λ§Œ μ‚¬μš©ν•  수 있으며, λ¬Έμžμ—΄μ΄ μ•„λ‹Œ λ‹€λ₯Έ μžλ£Œν˜•κ³Ό ν•¨κ»˜ μ‚¬μš©ν•  경우 νƒ€μž…(Type, μžλ£Œν˜•) μ—λŸ¬κ°€ λ°œμƒν•©λ‹ˆλ‹€. λ¬Έμžμ—΄κ³Ό λ‹€λ₯Έ μžλ£Œν˜•μ„ κ²°ν•©ν•˜λ €λ©΄, λ¨Όμ € λ‹€λ₯Έ μžλ£Œν˜•μ„ λ¬Έμžμ—΄λ‘œ λ³€ν™˜ν•΄μ•Ό ν•©λ‹ˆλ‹€.

λ¬Έμžμ—΄ μ—°κ²° μ˜ˆμ‹œ
greeting = "파이썬 " + "ν”„λ‘œκ·Έλž˜λ°!" print(greeting) # "파이썬 ν”„λ‘œκ·Έλž˜λ°!" # μˆ«μžν˜•μ„ λ¬Έμžμ—΄λ‘œ λ³€ν™˜ν•˜μ—¬ μ—°κ²° age = 30 message = "λ‚˜λŠ” " + str(age) + "μ‚΄μž…λ‹ˆλ‹€." print(message) # "λ‚˜λŠ” 30μ‚΄μž…λ‹ˆλ‹€."

λ¬Έμžμ—΄ μ—°μ‚°μžλ‘œμ„œ '+'의 νŠΉμ§•

  • 간결함: '+' μ—°μ‚°μžλŠ” μ½”λ“œλ₯Ό κ°„κ²°ν•˜κ²Œ μœ μ§€ν•˜λ©΄μ„œ λ¬Έμžμ—΄μ„ κ²°ν•©ν•˜λŠ” 데 μœ μš©ν•©λ‹ˆλ‹€.

  • λ¬Έμžμ—΄ μ „μš©: '+' μ—°μ‚°μžλŠ” λ¬Έμžμ—΄ μžλ£Œν˜•μ—λ§Œ μ μš©λ©λ‹ˆλ‹€.

Guidelines

AI Tutor

Publish

Design

Upload

Notes

Favorites

Help

Code Editor

Run
Generate

Execution Result