import random from replit import clear def deal_card(): """랜덤으로 카드 뽑기""" cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] card = random.choice(cards) return card def calculate_score(cards): """카드 합계산""" if sum(cards) == 21 and len(cards) == 2: #두장의 카드합이 21이면 게임이 끝나는 조건 return 0 if 11 in cards and sum(cards) > 21: cards.remove(11) cards.append(1) return sum(cards) def compare(user_score,com_s..