๊ด€๋ฆฌ ๋ฉ”๋‰ด

๋ชฉ๋กํŒŒ์ด์ฌ ์•ŒํŒŒ๋ฒณ ๋Œ€๋ฌธ์ž (1)

Hey Tech

[ํŒŒ์ด์ฌ] ์˜์–ด ๋ชจ๋“  ์•ŒํŒŒ๋ฒณ ์†Œ๋ฌธ์ž, ๋Œ€๋ฌธ์ž ์ •๋ณด ๋ถˆ๋Ÿฌ์˜ค๊ธฐ!

์•ˆ๋…•ํ•˜์„ธ์š”! ์˜ค๋Š˜์€ ํŒŒ์ด์ฌ ์˜์–ด ๋ชจ๋“  ์•ŒํŒŒ๋ฒณ ์ •๋ณด๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์†Œ๊ฐœํ•ด ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๊ฐ„๋‹จํžˆ ํŒŒ์ด์ฌ์˜ string ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํ™œ์šฉํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค :) ์†Œ๋ฌธ์ž, ๋Œ€๋ฌธ์ž ๋‚˜๋ˆ ์„œ ์•Œ์•„๋ณด์ฃ ! 1. ์†Œ๋ฌธ์ž import string alphabet_lower = string.ascii_lowercase print(alphabet_lower) ๊ฒฐ๊ณผ abcdefghijklmnopqrstuvwxyz 2. ๋Œ€๋ฌธ์ž import string alphabet_upper = string.ascii_uppercase print(alphabet_upper) ๊ฒฐ๊ณผ ABCDEFGHIJKLMNOPQRSTUVWXYZ ํฌ์ŠคํŒ… ๋‚ด์šฉ์— ์˜ค๋ฅ˜๊ฐ€ ์žˆ์„ ๊ฒฝ์šฐ ์•„๋ž˜์— ๋Œ“๊ธ€ ๋‚จ๊ฒจ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌ๋“œ๋ฆฌ๊ฒ ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿผ ์˜ค๋Š˜๋„ ์ฆ๊ฑฐ์šด ํ•˜๋ฃจ ๋ณด๋‚ด์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค :)..

SW ๊ฐœ๋ฐœ/Python 2021. 10. 10. 10:24