728x90
from random import randint
print("It is random game !")
pc_choice = randint(1, 30)
user_choice = int(input("choose your number : "))
n = 10
while n > 0:
if user_choice > pc_choice:
print("sorry it is too big")
user_choice = int(input("choose your number : "))
elif user_choice < pc_choice:
print("it is too small")
user_choice = int(input("choose your number : "))
else:
print("wow you are a number magician")
user_choice = int(input("choose your number : "))
n = n - 1
728x90
'호그와트' 카테고리의 다른 글
재미로 푸는 Brooklyn (2) | 2022.10.20 |
---|---|
사피엔스의 이해 (2) | 2022.10.20 |
완전 심쿵 ♡ (0) | 2022.09.22 |
논리적으로 답을 도출하기 (0) | 2022.09.22 |
드림핵 basic (1) | 2022.08.25 |