diff --git a/fugitives.py b/fugitives.py index 8e01893..0b36896 100644 --- a/fugitives.py +++ b/fugitives.py @@ -1,5 +1,5 @@ - import random + def generate_secret_code(): """ 1에서 9까지 서로 다른 숫자 4개로 이루어진 비밀 코드를 생성합니다. @@ -8,6 +8,9 @@ def generate_secret_code(): random.shuffle(numbers) return numbers[:4] + +print(generate_secret_code()) + def count_bulls_and_cows(secret_code, guess): """ 비밀 코드와 추측한 숫자를 비교하여 불과 카우의 개수를 계산합니다.