post-thumbnail

[๋ฐฑ์ค€] 10869๋ฒˆ ์‚ฌ์น™์—ฐ์‚ฐ

inputํ•จ์ˆ˜๋Š” ๋ฌธ์ž๋ฅผ ์ž…๋ ฅ๋ฐ›์„ ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ํ•จ์ˆ˜, splitํ•จ์ˆ˜๋Š” ๋ฌธ์ž์—ด์„ ๋‚˜๋ˆŒ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ํ•จ์ˆ˜์ด๋‹ค.input ํ•จ์ˆ˜๋กœ ์ž…๋ ฅ๋ฐ›๋Š” ๊ฒƒ์€ ์ˆซ์ž๊ฐ€ ์ž…๋ ฅ๋˜๋”๋ผ๋„ ๋ฌธ์ž์—ด๋กœ ์ž…๋ ฅ๋ฐ›๊ฒŒ ๋˜๋ฏ€๋กœ ์ˆซ์ž ๊ณ„์‚ฐ์„ ํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ int ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•ด์„œ ์ˆซ์ž๋กœ ๋ณ€ํ™˜ํ•ด์•ผ ํ•œ๋‹ค. split ํ•จ์ˆ˜

2021๋…„ 11์›” 26์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

๋ธ”๋ž™์žญ ๊ฒŒ์ž„2

import randomfrom art import logodeal_card() ํ•จ์ˆ˜๋ฅผ ๋งŒ๋“ค์–ด ์นด๋“œ ๋ฆฌ์ŠคํŠธ์ค‘ ๋žœ๋ค์œผ๋กœ ํ•˜๋‚˜ ๋ฆฌํ„ดํ•œ๋‹ค.def deal_card(): """ํ•จ์ˆ˜๋ฅผ ์ •์˜ํ•œ๋‹ค.""" cards = 11, 2, 3, 4, 5, 6, 7, 8, 9, 1

2021๋…„ 11์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

๋ธ”๋ž™์žญ๊ฒŒ์ž„

Ace๋Š” 1 ๋˜๋Š” 11๋กœ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค.King, Queen, Jack์€ ๊ฐ๊ฐ 10์œผ๋กœ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค.๊ทธ ์™ธ์˜ ์นด๋“œ๋Š” ์นด๋“œ์— ํ‘œ์‹œ๋œ ์ˆซ์ž๋กœ ๊ณ„์‚ฐํ•ฉ๋‹ˆ๋‹ค.Blackjack์ฒ˜์Œ ๋‘ ์žฅ์˜ ์นด๋“œ ํ•ฉ์ด 21์ผ ๊ฒฝ์šฐ๋ฅผ ๋งํ•˜๋ฉฐ ๋ฒ ํŒ… ๊ธˆ์•ก์˜ 1.5 ๋ฐฐ์˜ Pay๋ฅผ ๋ฐ›์Šต๋‹ˆ๋‹ค.Bust์นด๋“œ ํ•ฉ์ด 2

2021๋…„ 11์›” 23์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€