udemy ์ •๋ฆฌ

udemy ์ •๋ฆฌ - ๊ธฐ๋ณธ์ ์ธ ๋””๋ฒ„๊น…

ilsancityboy 2023. 7. 4. 19:18
#Fix the code below ๐Ÿ‘‡

print("Day 1 - String Manipulation")
print("String Concatenation is done with the "+" sign.")
print("e.g. print("Hello " + "world")")
print(("New lines can be created with a backslash and n.")

 

 

์œ„ ์ฝ”๋“œ๋ฅผ 

Day 1 - String Manipulation
String Concatenation is done with the "+" sign.
e.g. print("Hello " + "world")
New lines can be created with a backslash and n.

์ด์™€ ๊ฐ™์ด ๋‚˜์˜ค๊ฒŒ๋” ์ˆ˜์ •ํ•ด๋ณด์ž.

 

print("Day 1 - String Manipulation")

๋จผ์ € ์ฒซ์ค„์„ ๋ณด๋ฉด ์˜๋„๋Œ€๋กœ ๋‚˜์˜ค๊ฒŒ๋” ๋ฌธ์ œ์—†์ด ์ž˜ ์ž‘์„ฑ๋˜์–ด์žˆ๋‹ค.

 

 


 

print("String Concatenation is done with the "+" sign.")




String Concatenation is done with the sign.

๋‘๋ฒˆ์งธ ์ค„์„ ๋ณด๋ฉด ์–ธ๋œป ๋ณด๊ธฐ์—” ๋งž๊ณ  ์ถœ๋ ฅ๋„ ์ž˜ ๋œ๊ฒƒ์ฒ˜๋Ÿผ ๋ณด์ด์ง€๋งŒ 

์˜๋„๋Œ€๋กœ ์ถœ๋ ฅํ•˜๊ณ ์‹ถ์—ˆ๋˜ ์ฝ”๋“œ๋ฅผ ๋ณด๋ฉด ๋ฌธ์žฅ์•ˆ์— "+" ๋ผ๋Š” ๋ฌธ์ž์—ด๋„ ๊ฐ™์ด ์ถœ๋ ฅํ•˜๊ณ  ์‹ถ์–ดํ•œ๋‹ค.

ํ•˜์ง€๋งŒ ์ง€๊ธˆ ์ž‘์„ฑ๋˜์–ด์žˆ๋Š” ์ฝ”๋“œ๋Š” "String Concatenation is done with the " ์—์„œ ์Œ๋”ฐ์›€ํ‘œ ๋‘๊ฐœ๋กœ ๋ฌธ์žฅ์„ ๋„ฃ์–ด ๋๋‚ด๋ฒ„๋ ธ๋‹ค.

๊ทธ๋ฆฌ๊ณ  ๋‹ค์‹œ ์Œ๋”ฐ์›€ํ‘œ๋กœ ๋ฌธ์ž์—ด์„ ์—ด์–ด " sign." ํ•˜๊ณ  ๋‹ซ์•„๋ฒ„๋ ธ์œผ๋ฉฐ ๊ทธ ์‚ฌ์ด์—๋Š” + ๊ธฐํ˜ธ๊ฐ€ ๋“ค์–ด๊ฐ€ ๋‘ ๋ฌธ์žฅ์„ ์•„์˜ˆ ๋ถ™์—ฌ๋ฒ„๋ ธ๋‹ค.

์šฐ๋ฆฌ๊ฐ€ ๋„ฃ๊ณ ์‹ถ์–ดํ•˜๋Š”๊ฑด "+" ๋ฌธ์ž์—ด์ด๋‹ค. ๊ทธ๋Ÿผ ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ๋ ๊นŒ?

 

"String Concatenation is done with the "+" sign."

์—์„œ ๋ฌธ์ž์—ด ์‹œ์ž‘๊ณผ ๋์— ์Œ๋”ฐ์›€ํ‘œ ( " )๋ฅผ ์“ฐ์ง€์•Š๊ณ  ๋”ฐ์›€ํ‘œ ( ' ) ๋ฅผ ์‚ฌ์šฉํ•ด ๋ฌธ์ž์—ด์ค‘๊ฐ„์— ์Œ๋”ฐ์›€ํ‘œ ( " ) ํ‘œ์‹œ๋ฅผ ๋งŒ๋‚˜๋„ 

๋ฌธ์žฅ์ด ๋๋‚˜๋ฒ„๋ฆฌ์ง€ ์•Š๊ฒŒ๋” ํ•˜๋Š”๊ฒƒ์ด๋‹ค. ๋”ฐ๋ผ์„œ ์ˆ˜์ •ํ•˜๋ฉด 

print('String Concatenation is done with the "+" sign.')





String Concatenation is done with the "+" sign.

์˜๋„ํ–ˆ๋˜๋Œ€๋กœ ์ฝ”๋“œ๊ฐ€ ์ถœ๋ ฅ๋˜๋Š”๊ฒƒ์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 


 

 

print("e.g. print("Hello " + "world")")

์„ธ๋ฒˆ์งธ ์ค„์—๋„ ๋˜‘๊ฐ™์ด "Hello" ๋ผ๋Š” ๋ฌธ์ž์—ด์„ ๋งŒ๋‚˜๊ธฐ์ „์— ์Œ๋”ฐ์›€ํ‘œ๋ฅผ ๋งŒ๋‚˜ ๋ฌธ์žฅ์ด ๋๋‚˜๋ฒ„๋ฆฌ์ง€ ์•Š๊ฒŒ๋”

๋ฌธ์ž์—ด ์‹œ์ž‘๊ณผ ๋์„ ๋”ฐ์›€ํ‘œ๋กœ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค . 

 

๋”ฐ๋ผ์„œ ์ˆ˜์ •ํ•˜๋ฉด

print('e.g. print("Hello " + "world")')




e.g. print("Hello " + "world")

์˜๋„๋Œ€๋กœ ์ถœ๋ ฅ์ด ๋œ๋‹ค.

 


 

print(("New lines can be created with a backslash and n.")

๋„ค๋ฒˆ์งธ ์ค„์—๋Š” ๋‹จ์ˆœํžˆ print ํ•จ์ˆ˜๋ฅผ ์‹œ์ž‘ํ• ๋•Œ ์—ฌ๋Š” ๊ด„ํ˜ธ๋ฅผ ๋‘๋ฒˆ ์จ๋ฒ„๋ฆฐ๊ฒƒ์œผ๋กœ ํ•˜๋‚˜๋ฅผ ์ง€์›Œ์ฃผ์–ด ์ˆ˜์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

 

 

print("New lines can be created with a backslash and n.")





New lines can be created with a backslash and n.

 


 

 

 

 

 

๋ชจ๋‘ ์ˆ˜์ •ํ•˜์—ฌ ๋‹ต์•ˆ ์ œ์ถœํ•˜๋ฉด . . 

 

์ •๋‹ต!